From: Tom Rini Date: Thu, 13 Aug 2015 09:17:35 -0400 Subject: [U-Boot] [U-Boot, v2, 4/8] JFFS2: Improve speed reading flash files In-Reply-To: <1435725509-12300-5-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435725509-12300-5-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <20150813131735.GL25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 01, 2015 at 04:38:25PM +1200, Mark Tomlinson wrote: > jffs2_1pass_read_inode() would read the entire data for each node > in the filesystem, regardless of whether it was part of the file > to be loaded or not. By only reading the header data for an inode, > and then reading the data only when it is found to be part of the > file to be loaded, much copying of data is saved. > > jffs2_1pass_list_inodes() read each inode for every file in the > directory into a buffer. By using NULL as a buffer pointer, NOR > flash simply returns a pointer, and therefore avoids a memory copy. > > Signed-off-by: Mark Tomlinson Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: