]> git.sur5r.net Git - u-boot/commit
fs/fat: merge readwrite get_fatent_value() with readonly get_fatent()
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Fri, 16 Dec 2016 23:27:51 +0000 (00:27 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 27 Dec 2016 16:24:14 +0000 (11:24 -0500)
commitb8948d2aef80717d3d2c4f37ec086ce3ea5ad24f
treeec57e27d2654c9f74b72775f78b263401f365174
parent6c1a808052ba6a875df7aa450b6df4b199f3a281
fs/fat: merge readwrite get_fatent_value() with readonly get_fatent()

get_fatent_value(...) flushes changed FAT entries to disk when fetching
the next FAT blocks, in every other aspect it is identical to
get_fatent(...).

Provide a stub implementation for flush_dirty_fat_buffer if
CONFIG_FAT_WRITE is not set. Calling flush_dirty_fat_buffer during read
only operation is fine as it checks if any buffers needs flushing.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
fs/fat/fat.c
fs/fat/fat_write.c