On Wed, 2007-07-04 at 16:23 -0600, Andreas Dilger wrote: > Hi, > this is a patch we are currently using that speeds up statfs. > It is very simple - the "overhead" calculation, which takes a > huge amount of time for large filesystems, never changes unless > the size of the filesystem itself changes. That means we can > store it in memory and only recalculate if the filesystem has > been resized (almost never). > > It is based on ext3 but is trivally updated to ext4. It also > fixes a minor problem that we never update the on-disk superblock > free blocks/inodes counts until the filesystem is unmounted. > While not fatal, we may as well update that on disk when we have > the information, and it makes things like debugfs and dumpe2fs > report a bit more accurate info. > > I'd be happy if someone could update this to the latest kernel and > for ext2 and ext4 also. > I forward ported it to latest + did the same for ext2 and ext4 also. Compiles fine. I will post them tomorrow after little testing. Thanks, Badaru - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html