diff options
author | Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> | 2015-07-01 16:38:27 +1200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:31 -0400 |
commit | 081adef7e61be60c1328098cd19cb5aa6ceda21f (patch) | |
tree | 143e80164581d800bcfb790cefcb96e4ef3aa668 /fs/jffs2 | |
parent | c5b1940f5729232b9230d4e669d30d29fa72c9b7 (diff) | |
download | u-boot-imx-081adef7e61be60c1328098cd19cb5aa6ceda21f.zip u-boot-imx-081adef7e61be60c1328098cd19cb5aa6ceda21f.tar.gz u-boot-imx-081adef7e61be60c1328098cd19cb5aa6ceda21f.tar.bz2 |
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 <mark.tomlinson@alliedtelesis.co.nz>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/jffs2_1pass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index f488537..c55d472 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) { |