]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
authorJan Kara <jack@suse.cz>
Mon, 17 Aug 2009 16:14:33 +0000 (18:14 +0200)
committerJan Kara <jack@suse.cz>
Mon, 14 Sep 2009 15:08:15 +0000 (17:08 +0200)
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>
drivers/staging/pohmelfs/inode.c

index e63c9bea6c5478b26561c3cf2e25ac09af217f5f..e9d41e439aa734049a28c04a5feea29a8d50d451 100644 (file)
@@ -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);