OSDN Git Service

f2fs: trigger normal fsync for non-atomic_write file
authorChao Yu <yuchao0@huawei.com>
Fri, 18 Aug 2017 08:20:33 +0000 (16:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Sep 2017 21:15:09 +0000 (14:15 -0700)
commite1a34a55188890b7addd174aa83aee14840c8c9e
tree4f80946deae068315dc758194cefaa9e9c997d58
parent9071bb1c094f70ab08253b9335e62b8a79e20b15
f2fs: trigger normal fsync for non-atomic_write file

If file was not opened with atomic write mode, but user uses atomic write
ioctl to fsync datas, in the flow, we should not fsync that file with
atomic write mode.

Fixes: 608514deba38 ("f2fs: set fsync mark only for the last dnode")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c