Re: [U-Boot] [PATCH] JFFS2: accelerate scanning.

2011-04-13 Thread Detlev Zundel
Hi Leo, This patch make the JFFS2 scanning faster in U-Boot. 1). if we find 1KB 0xFF data from the beginning of the erase block,skip it. 2). if the 1KB data is 0xFF after the cleanmarker, ship this erase block. Ship it to where? ;) Typo, should be skip. For the 16MB nor flash, the scanning

[U-Boot] [PATCH] JFFS2: accelerate scanning.

2011-04-13 Thread Baidu Liu
Hi, Detlev 2011/4/13 Detlev Zundel d...@denx.de: Hi Leo, This patch make the JFFS2 scanning faster in U-Boot. 1). if we find 1KB 0xFF data from the beginning of the erase block,skip it. 2). if the 1KB data is 0xFF after the cleanmarker, ship this erase block. Ship it to where? ;) Typo,

Re: [U-Boot] [PATCH] JFFS2: accelerate scanning.

2011-04-13 Thread Detlev Zundel
Hi Baidu, diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index dfb1745..f38f755 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -1441,7 +1441,7 @@ dump_dirents(struct b_lists *pL) } #endif -#define DEFAULT_EMPTY_SCAN_SIZE 4096 +#define

Re: [U-Boot] [PATCH] JFFS2: accelerate scanning.

2011-04-13 Thread Joakim Tjernlund
Hi Baidu, diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index dfb1745..f38f755 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -1441,7 +1441,7 @@ dump_dirents(struct b_lists *pL) } #endif -#define DEFAULT_EMPTY_SCAN_SIZE 4096 +#define

[U-Boot] [PATCH] JFFS2: accelerate scanning.

2011-04-11 Thread Leo Liu
This patch make the JFFS2 scanning faster in U-Boot. 1). if we find 1KB 0xFF data from the beginning of the erase block,skip it. 2). if the 1KB data is 0xFF after the cleanmarker, ship this erase block. For the 16MB nor flash, the scanning time is changed from about 9s to 1s. Signed-off-by: Leo