lkml.org 
[lkml]   [2011]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 35/62] fuse: remove the second argument of k[un]map_atomic()
    Date

    Signed-off-by: Cong Wang <amwang@redhat.com>
    ---
    fs/fuse/dev.c | 4 ++--
    fs/fuse/file.c | 4 ++--
    2 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
    index 5cb8614..1d8a4cf 100644
    --- a/fs/fuse/dev.c
    +++ b/fs/fuse/dev.c
    @@ -838,10 +838,10 @@ static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep,
    }
    }
    if (page) {
    - void *mapaddr = kmap_atomic(page, KM_USER0);
    + void *mapaddr = kmap_atomic(page);
    void *buf = mapaddr + offset;
    offset += fuse_copy_do(cs, &buf, &count);
    - kunmap_atomic(mapaddr, KM_USER0);
    + kunmap_atomic(mapaddr);
    } else
    offset += fuse_copy_do(cs, NULL, &count);
    }
    diff --git a/fs/fuse/file.c b/fs/fuse/file.c
    index 594f07a..a8aabde 100644
    --- a/fs/fuse/file.c
    +++ b/fs/fuse/file.c
    @@ -1915,11 +1915,11 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
    in_iovs + out_iovs > FUSE_IOCTL_MAX_IOV)
    goto out;

    - vaddr = kmap_atomic(pages[0], KM_USER0);
    + vaddr = kmap_atomic(pages[0]);
    err = fuse_copy_ioctl_iovec(fc, iov_page, vaddr,
    transferred, in_iovs + out_iovs,
    (flags & FUSE_IOCTL_COMPAT) != 0);
    - kunmap_atomic(vaddr, KM_USER0);
    + kunmap_atomic(vaddr);
    if (err)
    goto out;

    --
    1.7.4.4


    \
     
     \ /
      Last update: 2011-11-27 06:37    [W:3.408 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site