Skip to content
Snippets Groups Projects
Commit 04eda1a1 authored by Jan Kara's avatar Jan Kara Committed by Tao Ma
Browse files

ocfs2: Flush drive's caches on fdatasync


When 'barrier' mount option is specified, we have to issue a cache flush
during fdatasync(2). We have to do this even if inode doesn't have
I_DIRTY_DATASYNC set because we still have to get written *data* to disk so
that they are not lost in case of crash.

Acked-by: default avatarTao Ma <tao.ma@oracle.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Singed-off-by: default avatarTao Ma <tao.ma@oracle.com>
parent f63afdb2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment