• Jan Kara's avatar
    ext3: Flush disk caches on fsync when needed · 56fcad29
    Jan Kara authored
    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>
    56fcad29
fsync.c 2.98 KB