diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-05 11:02:54 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-09 16:20:57 -0700 |
commit | 6aefd93b01379bf0b62f8b38dcf7a21397893833 (patch) | |
tree | 1d01c1c728ab42d50282c0d54f86a0ceedef0cd1 /fs/f2fs/gc.c | |
parent | 456b88e4d15de833165cce67c2cdf998139e2fc1 (diff) | |
download | linux-6aefd93b01379bf0b62f8b38dcf7a21397893833.tar.gz linux-6aefd93b01379bf0b62f8b38dcf7a21397893833.tar.bz2 linux-6aefd93b01379bf0b62f8b38dcf7a21397893833.zip |
f2fs: introduce background_gc=sync mount option
This patch introduce background_gc=sync enabling synchronous cleaning in
background.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 830d27770a32..e627c19f7301 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -78,7 +78,7 @@ static int gc_thread_func(void *data) stat_inc_bggc_count(sbi); /* if return value is not zero, no victim was selected */ - if (f2fs_gc(sbi, false)) + if (f2fs_gc(sbi, test_opt(sbi, FORCE_FG_GC))) wait_ms = gc_th->no_gc_sleep_time; /* balancing f2fs's metadata periodically */ |