fsck: avoid reading every object twice