From: Mark Tomlinson Date: Wed, 1 Jul 2015 04:38:27 +0000 (+1200) Subject: JFFS2: Change scansize to match linux kernel X-Git-Tag: v2015.10-rc2~141 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=081adef7e61be60c1328098cd19cb5aa6ceda21f;p=oweals%2Fu-boot.git JFFS2: Change scansize to match linux kernel The scan code is similar to the linux kernel, but the kernel defines a much smaller size to scan through before deciding a sector is blank. Assuming that what is in the kernel is OK, make these two match. On its own, this change makes no difference to scanning of any sectors which have a clean marker at the beginning, since the entire sector is not blank. Signed-off-by: Mark Tomlinson --- diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index f488537c9f..c55d472047 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -1480,7 +1480,7 @@ dump_dirents(struct b_lists *pL) } #endif -#define DEFAULT_EMPTY_SCAN_SIZE 4096 +#define DEFAULT_EMPTY_SCAN_SIZE 256 static inline uint32_t EMPTY_SCAN_SIZE(uint32_t sector_size) {