diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 12282b144651..2ad157db346c 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3128,6 +3128,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();