diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index c19a0a0ff47d..45363565597a 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3122,6 +3122,12 @@ static int __init init_f2fs_fs(void) { int err; + if (PAGE_SIZE != F2FS_BLKSIZE) { + printk("F2FS not supported on PAGE_SIZE(%lu) != %d\n", + PAGE_SIZE, F2FS_BLKSIZE); + return -EINVAL; + } + f2fs_build_trace_ios(); err = init_inodecache();