]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext4: Use struct flex_groups to calculate get_orlov_stats()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Mar 2009 00:31:53 +0000 (19:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 5 Mar 2009 00:31:53 +0000 (19:31 -0500)
commit7d39db14a42cbd719c7515b9da8f85a2eb6a0633
tree5c93b9f76c9895183d1e973ed296cd9b7a1d9a0e
parent9f24e4208f7ee2748f157368b63287dc903fcf60
ext4: Use struct flex_groups to calculate get_orlov_stats()

Instead of looping over all of the block groups in a flex group
summing their summary statistics, start tracking used_dirs in struct
flex_groups, and use struct flex_groups instead.  This should save a
bit of CPU for mkdir-heavy workloads.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/super.c