Patchwork [U-Boot,7/7] JFFS2: reduce number of read operations

login
register
mail settings
Submitter Baidu Boy
Date April 24, 2011, 3:41 a.m.
Message ID <002201cc0231$843412c0$6401a8c0@LENOVOE5CA6843>
Download mbox | patch
Permalink /patch/92636/
State New
Delegated to: Detlev Zundel
Headers show

Comments

Baidu Boy - April 24, 2011, 3:41 a.m.
1/ Sync with kernel
 Change the scanning buffer size to 128KB to reduce
 number of read operations.

Signed-off-by: Baidu Liu <liucai.lfn@gmail.com>
---
 fs/jffs2/jffs2_1pass.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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 */