From: Tom Rini Date: Thu, 13 Aug 2015 09:17:27 -0400 Subject: [U-Boot] [U-Boot, v2, 2/8] JFFS2: Speed up and fix comparison functions In-Reply-To: <1435725509-12300-3-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435725509-12300-3-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <20150813131727.GJ25532@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:23PM +1200, Mark Tomlinson wrote: > Copying complete nodes from flash can be slow if the flash is slow > to read. By only reading the data needed, the sorting operation can > be made much faster. > > The directory entry comparison function also had a two bugs. First, it > did not ensure the name was copied, so the name comparison may have > been faulty (although it would have worked with NOR flash). Second, > setting the ino to zero to ignore the entry did not work, since this > was either writing to a temporary buffer, or (for NOR flash) directly > to flash. Either way, the change was not remembered. > > 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: