diff options
author | Jan Kara <jack@suse.cz> | 2009-08-17 18:14:33 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-09-14 17:08:15 +0200 |
commit | b04f932171e8a99bb8ca2f863b2b9eadb85741e8 (patch) | |
tree | a379db3e75b7332d407230397678a4f895f60612 | |
parent | c7b50db21fe8c295092518e224d60b95e69da3b0 (diff) | |
download | kernel-common-b04f932171e8a99bb8ca2f863b2b9eadb85741e8.tar.gz kernel-common-b04f932171e8a99bb8ca2f863b2b9eadb85741e8.tar.bz2 kernel-common-b04f932171e8a99bb8ca2f863b2b9eadb85741e8.zip |
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: Jan Kara <jack@suse.cz>
-rw-r--r-- | drivers/staging/pohmelfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index e63c9bea6c54..e9d41e439aa7 100644 --- a/drivers/staging/pohmelfs/inode.c +++ b/drivers/staging/pohmelfs/inode.c @@ -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); |