diff options
author | Hou Tao <[email protected]> | 2019-05-14 15:44:32 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-05-14 19:52:50 -0700 |
commit | bd8309de0d60838eef6fb575b0c4c7e95841cf73 (patch) | |
tree | c086d652c070b17f5dadd47fc209648fd9a834d1 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 672cdd56f0ae95069e399db790dbf2e303ac72b7 (diff) |
fs/fat/file.c: issue flush after the writeback of FAT
fsync() needs to make sure the data & meta-data of file are persistent
after the return of fsync(), even when a power-failure occurs later. In
the case of fat-fs, the FAT belongs to the meta-data of file, so we need
to issue a flush after the writeback of FAT instead before.
Also bail out early when any stage of fsync fails.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Hou Tao <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions