summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2020-12-07 18:59:34 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-12-08 14:25:40 -0800
commitd540e35d4e547776ea78d51f614ec38ed2824fbe (patch)
treefc0298fbcdeef37a857dc0beffd801d8ad825655 /fs/f2fs/super.c
parentb9ec10948ff66f33e52d6617eae3c960cfd90638 (diff)
downloadlinux-d540e35d4e547776ea78d51f614ec38ed2824fbe.tar.bz2
f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()
Many flash devices read and write a single IO based on a multiple of 4KB, and we support only 4KB page cache size now. Since we already check page size in init_f2fs_fs(), so remove page size check in sanity_check_raw_super(). Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Shaohua Liu <liush@allwinnertech.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index b49eec7758d8..8a82721b69ef 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2801,13 +2801,6 @@ static int sanity_check_raw_super(struct f2fs_sb_info *sbi,
}
}
- /* Currently, support only 4KB page cache size */
- if (F2FS_BLKSIZE != PAGE_SIZE) {
- f2fs_info(sbi, "Invalid page_cache_size (%lu), supports only 4KB",
- PAGE_SIZE);
- return -EFSCORRUPTED;
- }
-
/* Currently, support only 4KB block size */
blocksize = 1 << le32_to_cpu(raw_super->log_blocksize);
if (blocksize != F2FS_BLKSIZE) {