From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 10 Apr 2019 08:19:12 -0400 Subject: [U-Boot] fs: ext4: cache extent data In-Reply-To: <20190130195805.9647-1-swarren@wwwdotorg.org> References: <20190130195805.9647-1-swarren@wwwdotorg.org> Message-ID: <20190410121912.GD4664@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, Jan 30, 2019 at 12:58:05PM -0700, Stephen Warren wrote: > From: Stephen Warren > > When a file contains extents, U-Boot currently reads extent-related data > for each block in the file, even if that data is located in the same > block each time. This significantly slows down loading of files that use > extents. Implement a very dumb cache to prevent repeatedly reading the > same block. Files with extents now load as fast as files without. > > Note: There are many cases where read_allocated_block() is called. This > patch only addresses one of those places; all others still read redundant > data in any case they did before. This is a minimal patch to fix the > load command; other cases aren't fixed. > > Signed-off-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: