diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:56:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:56:51 -0400 |
commit | 5704265188ffe4290ed73b3cb685206c3ed8209d (patch) | |
tree | 6bc51bea59625b2a7c8e4b74bbb66884371f74dd /fs/ext4/ialloc.c | |
parent | 0aa060000e83ca3d09ddc446a7174fb0820d99bc (diff) |
ext4: convert s_{dirty,free}blocks_counter to s_{dirty,free}clusters_counter
Convert the percpu counters s_dirtyblocks_counter and
s_freeblocks_counter in struct ext4_super_info to be
s_dirtyclusters_counter and s_freeclusters_counter.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index b7a8130d0af4..58115bad163f 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -490,7 +490,8 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent, | |||
490 | 490 | ||
491 | freei = percpu_counter_read_positive(&sbi->s_freeinodes_counter); | 491 | freei = percpu_counter_read_positive(&sbi->s_freeinodes_counter); |
492 | avefreei = freei / ngroups; | 492 | avefreei = freei / ngroups; |
493 | freeb = percpu_counter_read_positive(&sbi->s_freeblocks_counter); | 493 | freeb = EXT4_C2B(sbi, |
494 | percpu_counter_read_positive(&sbi->s_freeclusters_counter)); | ||
494 | avefreeb = freeb; | 495 | avefreeb = freeb; |
495 | do_div(avefreeb, ngroups); | 496 | do_div(avefreeb, ngroups); |
496 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); | 497 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); |