diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-02-27 14:30:05 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-10 19:18:33 +0300 |
commit | 7a88ddb56077d07257a5d0393a4be13e424ca755 (patch) | |
tree | 07aadedd5fcf7c7e85021148d5baaeea23225d6d /fs/f2fs/gc.c | |
parent | 3addc1aed38234e21cb6f9e4df0f6795ec075059 (diff) | |
download | linux-7a88ddb56077d07257a5d0393a4be13e424ca755.tar.xz |
f2fs: fix inconsistent comments
Lack of maintenance on comments may mislead developers, fix them.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index db8725d473b5..608d04950f05 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -192,7 +192,10 @@ static void select_policy(struct f2fs_sb_info *sbi, int gc_type, p->ofs_unit = sbi->segs_per_sec; } - /* we need to check every dirty segments in the FG_GC case */ + /* + * adjust candidates range, should select all dirty segments for + * foreground GC and urgent GC cases. + */ if (gc_type != FG_GC && (sbi->gc_mode != GC_URGENT) && p->max_search > sbi->max_victim_search) |