f2fs: trigger fdatasync for non-atomic_write file
Sqlite only cares about synchronization of file data instead of other data unrelated attribute of inode, so in commit flow, call fdatasync is enough. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0520ca37ef
commit
077e22bf7a
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);
|
stat_dec_atomic_write(inode);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 0, false);
|
ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 1, false);
|
||||||
}
|
}
|
||||||
err_out:
|
err_out:
|
||||||
inode_unlock(inode);
|
inode_unlock(inode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue