Skip to content
Commit 56fcad29 authored by Jan Kara's avatar Jan Kara
Browse files

ext3: Flush disk caches on fsync when needed



In case we fsync() a file and inode is not dirty, we don't force a transaction
to disk and hence don't flush disk caches. Thus file data could be just in disk
caches and not on persistent storage. Fix the problem by flushing disk caches
if we didn't force a transaction commit.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 4f003fd3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment