mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
pohmelfs: Use new syncing helper
Use new generic_write_sync() helper instead of sync_page_range(). Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
af0f4414f3
commit
aa3caafe53
1 changed files with 2 additions and 2 deletions
|
@ -927,10 +927,10 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf,
|
|||
mutex_unlock(&inode->i_mutex);
|
||||
WARN_ON(ret < 0);
|
||||
|
||||
if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) {
|
||||
if (ret > 0) {
|
||||
ssize_t err;
|
||||
|
||||
err = sync_page_range(inode, mapping, pos, ret);
|
||||
err = generic_write_sync(file, pos, ret);
|
||||
if (err < 0)
|
||||
ret = err;
|
||||
WARN_ON(ret < 0);
|
||||
|
|
Loading…
Reference in a new issue