From: Tom Rini Date: Thu, 13 Aug 2015 09:17:23 -0400 Subject: [U-Boot] [U-Boot, v2, 1/8] JFFS2: Return early when file read not necessary In-Reply-To: <1435725509-12300-2-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435725509-12300-2-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <20150813131723.GI25532@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:22PM +1200, Mark Tomlinson wrote: > If a destination is not provided, jffs2_1pass_read_inode() only > returns the length of the file. In this case, avoid reading all > the data nodes, and return as soon as the length of the file is > known. > > 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: