]> git.baikalelectronics.ru Git - uboot.git/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)
commit1454c21e8148735e8f9cc667a4656d6aed40b099
treeec57e27d2654c9f74b72775f78b263401f365174
parentd70e730173131e73adf5f89c0bed0b0717d8cb7f
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