f2fs: Only lfs mode is allowed with zoned block device feature
PATCH v2 1/1 f2fs: Only lfs mode is allowed with zoned block device feature
Now f2fs support four block allocation modes: lfs, adaptive, fragment:segment, fragment:block. Only lfs mode is allowed with zoned block device feature.
--- fs/f2fs/super.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
fs/f2fs/super.c +5 -5
@@ -862,11 +862,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)if (!name)return -ENOMEM ;if (!strcmp (name,"adaptive" )) { -if (f2fs_sb_has_blkzoned (sbi)) { -f2fs_warn (sbi,"adaptive mode is not allowed with zoned block device feature" ); -kfree (name); -return -EINVAL ; - }F2FS_OPTION (sbi).fs_mode =FS_MODE_ADAPTIVE ; }else if (!strcmp (name,"lfs" )) {F2FS_OPTION (sbi).fs_mode =FS_MODE_LFS ;
@@ -1331,6 +1326,11 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)F2FS_OPTION (sbi).discard_unit = DISCARD_UNIT_SECTION; } + +if (F2FS_OPTION (sbi).fs_mode !=FS_MODE_LFS ) { +f2fs_info (sbi,"Only lfs mode is allowed with zoned block device feature" ); +return -EINVAL ; + }#else f2fs_err (sbi,"Zoned block device support is not enabled" );return -EINVAL ;
Signature · 8 lines
2.25.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Chao Yu
maintainerQuoted 4 lines · Chunhai Guo
Now f2fs support four block allocation modes: lfs, adaptive, fragment:segment, fragment:block. Only lfs mode is allowed with zoned block device feature.
Otherwise, it looks good to me.
Thanks,
Quoted 23 lines
Signed-off-by Chunhai Guo <[email protected]>--- fs/f2fs/super.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)fs/f2fs/super.c +0
-5@@ -862,11 +862,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)if (!name)return -ENOMEM ;if (!strcmp (name,"adaptive" )) { -if (f2fs_sb_has_blkzoned (sbi)) { -f2fs_warn (sbi,"adaptive mode is not allowed with zoned block device feature" ); -kfree (name); -return -EINVAL ; - }F2FS_OPTION (sbi).fs_mode =FS_MODE_ADAPTIVE ; }else if (!strcmp (name,"lfs" )) {F2FS_OPTION (sbi).fs_mode =FS_MODE_LFS ;@@ -1331,6 +1326,11 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount) F2FS_OPTION(sbi).discard_unit =
fs/f2fs/super.c static int parse_options(struct super_block *sb, char *options, bool is_remount) · line 1336
Quoted 10 lines
fs/f2fs/super.c +5
-0DISCARD_UNIT_SECTION; } + +if (F2FS_OPTION (sbi).fs_mode !=FS_MODE_LFS ) { +f2fs_info (sbi,"Only lfs mode is allowed with zoned block device feature" ); +return -EINVAL ; + }#else f2fs_err (sbi,"Zoned block device support is not enabled" );return -EINVAL ;
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 8 lines · On Thu, 3 Aug 2023 22:28:42 +0800 you wrote:
Now f2fs support four block allocation modes: lfs, adaptive, fragment:segment, fragment:block. Only lfs mode is allowed with zoned block device feature.
Signed-off-by Chunhai Guo <[email protected]>--- fs/f2fs/super.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Here is the summary with links:
- [f2fs-dev,v2] f2fs: Only lfs mode is allowed with zoned block device feature
https://git.kernel.org/jaegeuk/f2fs/c/2bd4df8fcbc7
You are awesome, thank you!
Signature · 10 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel