diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-07 17:33:22 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-10 22:48:12 -0400 |
commit | 302bd34882b1e20797f08cc13ef060ec972d0acb (patch) | |
tree | 2dcb2478107e275adba800ab510eef888f6ada20 /fs/f2fs/debug.c | |
parent | 63fcf8e8d6bff2e8228f348c78b4a4fcca44401a (diff) |
f2fs: clean up get_valid_blocks with consistent parameter
This patch cleans up get_valid_blocks, which has no functional change.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 906f627e44fc..dc16a52db275 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -137,7 +137,7 @@ static void update_sit_info(struct f2fs_sb_info *sbi) | |||
137 | blks_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; | 137 | blks_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; |
138 | hblks_per_sec = blks_per_sec / 2; | 138 | hblks_per_sec = blks_per_sec / 2; |
139 | for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { | 139 | for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { |
140 | vblocks = get_valid_blocks(sbi, segno, sbi->segs_per_sec); | 140 | vblocks = get_valid_blocks(sbi, segno, true); |
141 | dist = abs(vblocks - hblks_per_sec); | 141 | dist = abs(vblocks - hblks_per_sec); |
142 | bimodal += dist * dist; | 142 | bimodal += dist * dist; |
143 | 143 | ||