projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd2935
)
f2fs: skip migration only when BG_GC is called
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Sun, 9 Feb 2020 21:28:45 +0000
(13:28 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 19 Mar 2020 18:41:26 +0000
(11:41 -0700)
FG_GC needs to move entire section more quickly.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/gc.c
b/fs/f2fs/gc.c
index
f6958ae
..
9ead93f
100644
(file)
--- a/
fs/f2fs/gc.c
+++ b/
fs/f2fs/gc.c
@@
-1211,7
+1211,7
@@
static int do_garbage_collect(struct f2fs_sb_info *sbi,
if (get_valid_blocks(sbi, segno, false) == 0)
goto freed;
- if (__is_large_section(sbi) &&
+ if (
gc_type == BG_GC &&
__is_large_section(sbi) &&
migrated >= sbi->migration_granularity)
goto skip;
if (!PageUptodate(sum_page) || unlikely(f2fs_cp_error(sbi)))