diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-07 23:33:22 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-11 04:48:12 +0200 |
commit | 302bd34882b1e20797f08cc13ef060ec972d0acb (patch) | |
tree | 2dcb2478107e275adba800ab510eef888f6ada20 /fs/f2fs/super.c | |
parent | f2fs: use segment number for get_valid_blocks (diff) | |
download | linux-302bd34882b1e20797f08cc13ef060ec972d0acb.tar.xz linux-302bd34882b1e20797f08cc13ef060ec972d0acb.zip |
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 '')
-rw-r--r-- | fs/f2fs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index cb65e6d0d275..97c07a5153e9 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -996,7 +996,7 @@ static int segment_info_seq_show(struct seq_file *seq, void *offset) if ((i % 10) == 0) seq_printf(seq, "%-10d", i); seq_printf(seq, "%d|%-3u", se->type, - get_valid_blocks(sbi, i, 1)); + get_valid_blocks(sbi, i, false)); if ((i % 10) == 9 || i == (total_segs - 1)) seq_putc(seq, '\n'); else @@ -1022,7 +1022,7 @@ static int segment_bits_seq_show(struct seq_file *seq, void *offset) seq_printf(seq, "%-10d", i); seq_printf(seq, "%d|%-3u|", se->type, - get_valid_blocks(sbi, i, 1)); + get_valid_blocks(sbi, i, false)); for (j = 0; j < SIT_VBLOCK_MAP_SIZE; j++) seq_printf(seq, " %.2x", se->cur_valid_map[j]); seq_putc(seq, '\n'); |