f2fs: introduce gc_merge mount option
authorChao Yu <yuchao0@huawei.com>
Sat, 27 Mar 2021 09:57:06 +0000 (17:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 31 Mar 2021 01:48:56 +0000 (18:48 -0700)
commit5911d2d1d1a38b26585383478bd71d9254e48bdf
treecbddc45a5994ba68705f931392f9d7051a3e9eff
parent823d13e12b6cbaef2f6e5d63c648643e7bc094dd
f2fs: introduce gc_merge mount option

In this patch, we will add two new mount options: "gc_merge" and
"nogc_merge", when background_gc is on, "gc_merge" option can be
set to let background GC thread to handle foreground GC requests,
it can eliminate the sluggish issue caused by slow foreground GC
operation when GC is triggered from a process with limited I/O
and CPU resources.

Original idea is from Xiang.

Signed-off-by: Gao Xiang <xiang@kernel.org>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/segment.c
fs/f2fs/super.c