UPSTREAM: f2fs: allow checkpoint=disable for zoned block device
Let's allow checkpoint=disable back for zoned block device. It's very risky
as the feature relies on fsck or runtime recovery which matches the write
pointers again if the device rebooted while disabling the checkpoint.
Change-Id: I0780824d477af4e943b36e7f73ea68b4d9916604
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Bug: 454495297
(cherry picked from commit 29215a7d43c77466f2d7e6c264942e6bc8e06cd8)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 561d1c0..ff2c582 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1444,11 +1444,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
}
}
- if (test_opt(sbi, DISABLE_CHECKPOINT) && f2fs_lfs_mode(sbi)) {
- f2fs_err(sbi, "LFS is not compatible with checkpoint=disable");
- return -EINVAL;
- }
-
if (test_opt(sbi, ATGC) && f2fs_lfs_mode(sbi)) {
f2fs_err(sbi, "LFS is not compatible with ATGC");
return -EINVAL;