f2fs: issue cache flush on direct IO
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 18 Apr 2016 21:07:44 +0000 (17:07 -0400)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 26 Apr 2016 21:25:05 +0000 (14:25 -0700)
commit6bfc49197eba070b799ab4ca8755d3a9fd1700da
treede08963c815844f492c03713071c2933e00f137f
parent608514deba38c8611ad330d6a3c8e2b9a1f68e4b
f2fs: issue cache flush on direct IO

Under direct IO path with O_(D)SYNC, it needs to set proper APPEND or UPDATE
flags, so taht f2fs_sync_file can make its data safe.

Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c