From patchwork Sun Apr 24 03:41:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baidu Boy X-Patchwork-Id: 92636 X-Patchwork-Delegate: dzu@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 6B560B6FBD for ; Sun, 24 Apr 2011 13:41:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 114432809E; Sun, 24 Apr 2011 05:41:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EQLsQAFTI0Vx; Sun, 24 Apr 2011 05:41:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 37130280AC; Sun, 24 Apr 2011 05:41:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F1812280AF for ; Sun, 24 Apr 2011 05:41:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RWuXix6F6nAA for ; Sun, 24 Apr 2011 05:41:45 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pv0-f172.google.com (mail-pv0-f172.google.com [74.125.83.172]) by theia.denx.de (Postfix) with ESMTPS id 08104280AC for ; Sun, 24 Apr 2011 05:41:43 +0200 (CEST) Received: by pvh1 with SMTP id 1so920548pvh.3 for ; Sat, 23 Apr 2011 20:41:41 -0700 (PDT) Received: by 10.68.48.133 with SMTP id l5mr1949256pbn.360.1303616501272; Sat, 23 Apr 2011 20:41:41 -0700 (PDT) Received: from LENOVOE5CA6843 ([121.229.190.251]) by mx.google.com with ESMTPS id d10sm3013613pbe.75.2011.04.23.20.41.32 (version=SSLv3 cipher=OTHER); Sat, 23 Apr 2011 20:41:40 -0700 (PDT) From: "Baidu Liu" To: , Date: Sun, 24 Apr 2011 11:41:26 +0800 Message-ID: <002201cc0231$843412c0$6401a8c0@LENOVOE5CA6843> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwCMX1IIQ3zpWQcRwShsZiC7xfC2Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3664 Subject: [U-Boot] [PATCH 7/7] JFFS2: reduce number of read operations X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 */