f2fs: allow checkpoint=disable for zoned block device
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 Dec 2023 18:38:35 +0000 (10:38 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 Dec 2023 18:38:35 +0000 (10:38 -0800)
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.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 033af907c3b1dc3059874fc689a32c0f0aaa45b2..617340e9ea7f1f7efee4b26adc68e1fff45d72a5 100644 (file)
@@ -1422,11 +1422,6 @@ default_check:
                }
        }
 
-       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;