summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-02-27 19:30:05 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-10 09:18:33 -0700
commit7a88ddb56077d07257a5d0393a4be13e424ca755 (patch)
tree07aadedd5fcf7c7e85021148d5baaeea23225d6d /fs/f2fs/gc.c
parent3addc1aed38234e21cb6f9e4df0f6795ec075059 (diff)
downloadlinux-7a88ddb56077d07257a5d0393a4be13e424ca755.tar.bz2
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.c5
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)