[PATCH] fast ext3_statfs
authorAlex Tomas <alex@clusterfs.com>
Fri, 24 Mar 2006 11:16:16 +0000 (03:16 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:25 +0000 (07:33 -0800)
commit09fe316a7b10219be592118626850e1dfdfcc1aa
tree09542092195cc918f3566102e2b4090936e160b2
parente933b6d6511dc80c63ab36fd584715371ae293c7
[PATCH] fast ext3_statfs

Under I/O load it may take up to a dozen seconds to read all group
descriptors.  This is what ext3_statfs() does.  At the same time, we already
maintain global numbers of free inodes/blocks.  Why don't we use them instead
of group reading and summing?

Cc: Ravikiran G Thirumalai <kiran@scalex86.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/super.c