author | Heinrich Schuchardt <xypron.glpk@gmx.de> | |
Wed, 20 Jan 2021 21:21:53 +0000 (22:21 +0100) | ||
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | |
Sat, 23 Jan 2021 06:56:53 +0000 (07:56 +0100) | ||
commit | e97eb638de0dc8f6e989e20eaeb0342f103cb917 | |
tree | 2f788cffac7b0e107159fefc1133a156dac09c28 | tree | snapshot (tar.xz tar.gz zip) |
parent | 184aa6504143b452132e28cd3ebecc7b941cdfa1 | commit | diff |
fs: fat: consistent error handling for flush_dir()
Provide function description for flush_dir().
Move all error messages for flush_dir() from the callers to the function.
Move mapping of errors to -EIO to the function.
Always check return value of flush_dir() (Coverity CID 316362).
In fat_unlink() return -EIO if flush_dirty_fat_buffer() fails.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Provide function description for flush_dir().
Move all error messages for flush_dir() from the callers to the function.
Move mapping of errors to -EIO to the function.
Always check return value of flush_dir() (Coverity CID 316362).
In fat_unlink() return -EIO if flush_dirty_fat_buffer() fails.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c | diff | blob | history |