]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 29 Aug 2017 17:02:57 +0000 (10:02 -0700)
commitabd8b512c6240e5f6ab660b23236295833a81101
tree39b78ea4e5f2f1abb03974f81e0c77c070bf4290
parentd43a2b1e5f9a5260168b6bfe637bf07d3066afc3
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: 7b84c7334495 ("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