diff options
author | Chao Yu <[email protected]> | 2020-02-14 17:44:13 +0800 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2020-03-19 11:41:25 -0700 |
commit | bbbc34fd66625473d20f89def2703f4f140d2ce8 (patch) | |
tree | 325ae11a365fc09224d5f3cfe71bc2d4c15aeeb5 /lib/mpi/mpi-mul.c | |
parent | b0332a0f957ca818642cfafdb9515d4fd3b24663 (diff) |
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 <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions