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>
This commit is contained in:
parent
9071bb1c09
commit
e1a34a5518
1 changed files with 1 additions and 1 deletions
|
@ -1660,7 +1660,7 @@ static int f2fs_ioc_commit_atomic_write(struct file *filp)
|
|||
stat_dec_atomic_write(inode);
|
||||
}
|
||||
} else {
|
||||
ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 0, true);
|
||||
ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 0, false);
|
||||
}
|
||||
err_out:
|
||||
inode_unlock(inode);
|
||||
|
|
Loading…
Add table
Reference in a new issue