From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher invitel Date: Tue, 30 Jun 2015 11:14:37 +0200 Subject: [U-Boot] [PATCH 6/8] JFFS2: Change scansize to match linux kernel In-Reply-To: <1435554149-18042-7-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435554149-18042-1-git-send-email-mark.tomlinson@alliedtelesis.co.nz> <1435554149-18042-7-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <55925DFD.5050206@invitel.hu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Mark, Am 29.06.2015 um 07:02 schrieb Mark Tomlinson: > 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 > --- > > fs/jffs2/jffs2_1pass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko > > diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c > index 10bd7be..d78fb06 100644 > --- a/fs/jffs2/jffs2_1pass.c > +++ b/fs/jffs2/jffs2_1pass.c > @@ -1472,7 +1472,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) > { >