lkml.org 
[lkml]   [2009]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/17] pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
    Date
    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 | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
    index 7b60579..17801a5 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);
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2009-08-21 19:33    [W:0.021 / U:0.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site