aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c5
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)
551 cs->iov++; 551 cs->iov++;
552 cs->nr_segs--; 552 cs->nr_segs--;
553 } 553 }
554 down_read(&current->mm->mmap_sem); 554 err = get_user_pages_fast(cs->addr, 1, cs->write, &cs->pg);
555 err = get_user_pages(current, current->mm, cs->addr, 1, cs->write, 0,
556 &cs->pg, NULL);
557 up_read(&current->mm->mmap_sem);
558 if (err < 0) 555 if (err < 0)
559 return err; 556 return err;
560 BUG_ON(err != 1); 557 BUG_ON(err != 1);