diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-05-25 15:06:06 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-05-25 15:06:06 +0200 |
commit | 1bf94ca73ea524228b864275efa44373ebb939a0 (patch) | |
tree | 6ad0f17f4da1f1dd8a1aae2c77e5865fb5f42f33 /fs/fuse/dev.c | |
parent | 4aa0edd294f69e3100973a0ecfa1e6b5ab42d83a (diff) | |
download | linux-stable-1bf94ca73ea524228b864275efa44373ebb939a0.tar.gz linux-stable-1bf94ca73ea524228b864275efa44373ebb939a0.tar.bz2 linux-stable-1bf94ca73ea524228b864275efa44373ebb939a0.zip |
fuse: use get_user_pages_fast()
Replace uses of get_user_pages() with get_user_pages_fast(). It looks
nicer and should be faster in most cases.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index eb7e9423691f..4623018e104a 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -551,10 +551,7 @@ static int fuse_copy_fill(struct fuse_copy_state *cs) cs->iov++; cs->nr_segs--; } - down_read(¤t->mm->mmap_sem); - err = get_user_pages(current, current->mm, cs->addr, 1, cs->write, 0, - &cs->pg, NULL); - up_read(¤t->mm->mmap_sem); + err = get_user_pages_fast(cs->addr, 1, cs->write, &cs->pg); if (err < 0) return err; BUG_ON(err != 1); |