Skip to content

Commit

Permalink
pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_wr…
Browse files Browse the repository at this point in the history
…ite_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: Jan Kara <jack@suse.cz>
  • Loading branch information
Jan Kara committed Sep 14, 2009
1 parent c7b50db commit b04f932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/pohmelfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf,
if (ret)
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;

mutex_unlock(&inode->i_mutex);
Expand Down

0 comments on commit b04f932

Please sign in to comment.