diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index d0ae5ef2538f..5728f251a4b7 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1349,6 +1349,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;