From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 23 Sep 2016 15:55:44 -0400 Subject: [U-Boot] [U-Boot, 2/4] fs/fat: Do not write unmodified fat entries to disk In-Reply-To: References: Message-ID: <20160923195544.GP4884@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 Sun, Sep 11, 2016 at 10:51:40PM +0200, Stefan Br?ns wrote: > The code caches 6 sectors of the FAT. On FAT traversal, the old contents > needs to be flushed to disk, but only if any FAT entries had been modified. > Explicitly flag the buffer on modification. > > Currently, creating a new file traverses the whole FAT up to the first > free cluster and rewrites the on-disk blocks. > > Signed-off-by: Stefan Br?ns > Reviewed-by: Lukasz Majewski 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: Digital signature URL: