summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2022-08-12 00:53:34 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2022-08-30 06:15:50 +0200
commit80dc113aaa47c0d1dfd01f708d4d0c083022121b (patch)
tree720866d8e9b3622457328f653338241e21693da2 /fs/f2fs
parenttracing: Define the is_signed_type() macro once (diff)
downloadlinux-80dc113aaa47c0d1dfd01f708d4d0c083022121b.tar.xz
linux-80dc113aaa47c0d1dfd01f708d4d0c083022121b.zip
f2fs: LFS mode does not support ATGC
ATGC is using SSR which violates LFS mode used by zoned device. Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 2451623c05a7..fe462484f5fa 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;