From: Jaegeuk Kim Date: Fri, 1 Dec 2023 18:38:35 +0000 (-0800) Subject: f2fs: allow checkpoint=disable for zoned block device X-Git-Tag: v6.8-rc1~112^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29215a7d43c77466f2d7e6c264942e6bc8e06cd8;p=thirdparty%2Fkernel%2Flinux.git 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. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 033af907c3b1d..617340e9ea7f1 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -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;