提交 b04f9321 编写于 作者: J Jan Kara

pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock

Use new helper __generic_file_aio_write(). Since the fs takes care of syncing
by itself afterwards, there are no more changes needed.

CC: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 c7b50db2
...@@ -921,7 +921,7 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf, ...@@ -921,7 +921,7 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf,
if (ret) if (ret)
goto err_out_unlock; goto err_out_unlock;
ret = generic_file_aio_write_nolock(&kiocb, &iov, 1, pos); ret = __generic_file_aio_write(&kiocb, &iov, 1, &kiocb.ki_pos);
*ppos = kiocb.ki_pos; *ppos = kiocb.ki_pos;
mutex_unlock(&inode->i_mutex); mutex_unlock(&inode->i_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册