f2fs: remove unnecessary block size check in init_f2fs_fs()
authorChao Yu <chao@kernel.org>
Tue, 16 Apr 2024 07:21:08 +0000 (15:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 19 Apr 2024 17:57:35 +0000 (17:57 +0000)
After commit d7e9a9037de2 ("f2fs: Support Block Size == Page Size"),
F2FS_BLKSIZE equals to PAGE_SIZE, remove unnecessary check condition.

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

index 5f4262f0630246ded8ed1d3f2c0e244736f1f059..ef673f853366b58f3a99ff619936da905d3f8a8a 100644 (file)
@@ -4931,12 +4931,6 @@ static int __init init_f2fs_fs(void)
 {
        int err;
 
-       if (PAGE_SIZE != F2FS_BLKSIZE) {
-               printk("F2FS not supported on PAGE_SIZE(%lu) != BLOCK_SIZE(%lu)\n",
-                               PAGE_SIZE, F2FS_BLKSIZE);
-               return -EINVAL;
-       }
-
        err = init_inodecache();
        if (err)
                goto fail;