[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1607338774-8541-2-git-send-email-liush@allwinnertech.com>
Date: Mon, 7 Dec 2020 18:59:34 +0800
From: liush <liush@...winnertech.com>
To: jaegeuk@...nel.org, chao@...nel.org
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org, tiny.windzz@...il.com,
Shaohua Liu <liush@...winnertech.com>
Subject: [PATCH 2/2] f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()
From: Yangtao Li <tiny.windzz@...il.com>
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@...il.com>
Signed-off-by: Shaohua Liu <liush@...winnertech.com>
---
fs/f2fs/super.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index d3ccf89647df..a39a81ab8dee 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2770,13 +2770,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) {
--
2.25.1
Powered by blists - more mailing lists