[U-Boot] [U-Boot, 2/4] fs/fat: Do not write unmodified fat entries to disk
Tom Rini
trini at konsulko.com
Fri Sep 23 21:55:44 CEST 2016
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 <stefan.bruens at rwth-aachen.de>
> Reviewed-by: Lukasz Majewski <l.majewski at samsung.com>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20160923/6a83fa08/attachment.sig>
More information about the U-Boot
mailing list