Re: [PATCH] minor optimization for EXT3

From: Andi Kleen (ak@suse.de)
Date: Thu Jul 10 2003 - 07:55:43 EST


On Thu, Jul 10, 2003 at 04:51:30PM +0000, Alex Tomas wrote:
> AK> Also dtimes in free inodes can be now lost, can't they? Did you check
> AK> if that causes problems in fsck? [my understanding was that ext2/3 fsck relies on the
> AK> dtime to make some heuristics when recovering files work better]
>
> freed inodes will be lost. I've checked filesystem by fsck after lots of creations/removals.
> it seems OK.

iirc the dtime is used so that fsck can relink all non deleted inodes to lost+found
when a directory is corrupted. Without dtime there is no way to distingush
deleted and non deleted files, and just relinking everything would be quite
nasty.

With your patch this heuristic would lose some files.

That's more important for ext2 than ext3 of course, but even on ext3
you could get a corrupted directory when you're unlucky (e.g. io error or similar)

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:35 EST