From: Jaegeuk Kim Date: Thu, 11 Aug 2022 22:53:34 +0000 (-0700) Subject: f2fs: LFS mode does not support ATGC X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80dc113aaa47c0d1dfd01f708d4d0c083022121b;p=linux.git f2fs: LFS mode does not support ATGC ATGC is using SSR which violates LFS mode used by zoned device. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2451623c05a7a..fe462484f5fa0 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1342,6 +1342,11 @@ default_check: return -EINVAL; } + if (test_opt(sbi, ATGC) && f2fs_lfs_mode(sbi)) { + f2fs_err(sbi, "LFS not compatible with ATGC"); + return -EINVAL; + } + if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) { f2fs_err(sbi, "Allow to mount readonly mode only"); return -EROFS;