diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-02-14 12:44:13 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-19 21:41:25 +0300 |
commit | bbbc34fd66625473d20f89def2703f4f140d2ce8 (patch) | |
tree | 325ae11a365fc09224d5f3cfe71bc2d4c15aeeb5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b0332a0f957ca818642cfafdb9515d4fd3b24663 (diff) | |
download | linux-bbbc34fd66625473d20f89def2703f4f140d2ce8.tar.xz |
f2fs: clean up bggc mount option
There are three status for background gc: on, off and sync, it's
a little bit confused to use test_opt(BG_GC) and test_opt(FORCE_FG_GC)
combinations to indicate status of background gc.
So let's remove F2FS_MOUNT_BG_GC and F2FS_MOUNT_FORCE_FG_GC mount
options, and add F2FS_OPTION().bggc_mode with below three status
to clean up codes and enhance bggc mode's scalability.
enum {
BGGC_MODE_ON, /* background gc is on */
BGGC_MODE_OFF, /* background gc is off */
BGGC_MODE_SYNC, /*
* background gc is on, migrating blocks
* like foreground gc
*/
};
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions