commit | 751b31dfbb22cfffced9d769686c78334ef9f8e6 | [log] [tgz] |
---|---|---|
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | Sun Sep 11 22:51:40 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Sep 23 08:55:56 2016 -0400 |
tree | 96eaf61ad2db6e61e4b17944aa222c914cb07b49 | |
parent | 6c617d642142de1655d06a087496f3c92f36f4aa [diff] |
fs/fat: Do not write unmodified fat entries to disk 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@rwth-aachen.de> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>