diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-14 17:38:35 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-25 10:15:57 -0800 |
commit | 7702bdbe505a22380dd958e2ee35124c7c414806 (patch) | |
tree | 8dc084fff9df8d1330389b877514977b7eb97ecf /fs/f2fs/file.c | |
parent | c040ff9d69fd1d782fe577ba9e35c1f5798158ae (diff) | |
download | talos-obmc-linux-7702bdbe505a22380dd958e2ee35124c7c414806.tar.gz talos-obmc-linux-7702bdbe505a22380dd958e2ee35124c7c414806.zip |
f2fs: avoid BG_GC in f2fs_balance_fs
If many threads hit has_not_enough_free_secs() in f2fs_balance_fs() at the same
time, all the threads would do FG_GC or BG_GC.
In this critical path, we totally don't need to do BG_GC at all.
Let's avoid that.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 39616de92a55..9ea89ca8fd0b 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1849,7 +1849,7 @@ static int f2fs_ioc_gc(struct file *filp, unsigned long arg) mutex_lock(&sbi->gc_mutex); } - ret = f2fs_gc(sbi, sync); + ret = f2fs_gc(sbi, sync, true); out: mnt_drop_write_file(filp); return ret; |