]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: clean up lfs/adaptive mount option
authorChao Yu <yuchao0@huawei.com>
Fri, 14 Feb 2020 09:44:12 +0000 (17:44 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 19 Mar 2020 18:41:25 +0000 (11:41 -0700)
commit62d8a7461a5328c2672e22ed2921a09e57672349
tree6ab579ac512b58b343c5e817b43b6336058bfaa6
parentbfa7ee30b20e476dad7144475b4ebbd99bd0fbe9
f2fs: clean up lfs/adaptive mount option

This patch removes F2FS_MOUNT_ADAPTIVE and F2FS_MOUNT_LFS mount options,
and add F2FS_OPTION.fs_mode with below two status to indicate filesystem
mode.

enum {
FS_MODE_ADAPTIVE, /* use both lfs/ssr allocation */
FS_MODE_LFS, /* use lfs allocation only */
};

It can enhance code readability and fs mode's scalability.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/segment.c
fs/f2fs/super.c