From patchwork Sun Apr 24 03:41:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,7/7] JFFS2: reduce number of read operations Date: Sat, 23 Apr 2011 17:41:26 -0000 From: Baidu Boy X-Patchwork-Id: 92636 Message-Id: <002201cc0231$843412c0$6401a8c0@LENOVOE5CA6843> To: , 1/ Sync with kernel Change the scanning buffer size to 128KB to reduce number of read operations. Signed-off-by: Baidu Liu --- 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 bbfab2c..a4971b0 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -1460,7 +1460,7 @@ jffs2_1pass_build_lists(struct part_info * part) u32 counter4 = 0; u32 counterF = 0; u32 counterN = 0; - u32 buf_size = DEFAULT_EMPTY_SCAN_SIZE; + u32 buf_size = 128*1024; char *buf; /* turn off the lcd. Refreshing the lcd adds 50% overhead to the */