diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 16:06:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 16:53:55 -0700 |
commit | ac13a829f6adb674015ab399594c089990104af7 (patch) | |
tree | 29f0b78758080bac01307e705371283a406b41c4 /virt/kvm | |
parent | fd2916bd77109b69891573fd1e1205ecc619893e (diff) | |
download | linux-stable-ac13a829f6adb674015ab399594c089990104af7.tar.gz linux-stable-ac13a829f6adb674015ab399594c089990104af7.tar.bz2 linux-stable-ac13a829f6adb674015ab399594c089990104af7.zip |
fs/libfs.c: add generic data flush to fsync
Description by Jan Kara:
"A lot of older filesystems don't properly flush volatile disk caches
on fsync(2) which can lead to loss of fsynced data after power failure.
This patch makes generic_file_fsync() issue proper cache flush to fix the
problem. Sysadmin can use /sys/devices/.../cache_type to tell the system
it should not send the cache flush."
[akpm@linux-foundation.org: nuke ifdef]
[akpm@linux-foundation.org: fix warning]
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Jan Kara <jack@suse.cz>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions