1
0
Fork 0

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>
utp
Mark Tomlinson 2015-07-01 16:38:27 +12:00 committed by Tom Rini
parent c5b1940f57
commit 081adef7e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{