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

Baidu Liu liucai.lfn at gmail.com
Sun Apr 24 05:41:26 CEST 2011


 1/ Sync with kernel
 Change the scanning buffer size to 128KB to reduce
 number of read operations.

Signed-off-by: Baidu Liu <liucai.lfn at gmail.com>
---
 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 */
-- 
1.7.3.1.msysgit.0



More information about the U-Boot mailing list