From: Jan Kara Date: Wed, 2 Oct 2013 14:27:51 +0000 (+0200) Subject: lustre: Convert ll_get_user_pages() to use get_user_pages_fast() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d1a168eccfb99a84cea447726ad70ac854b5b6df;p=linux-beck.git lustre: Convert ll_get_user_pages() to use get_user_pages_fast() CC: Peng Tao Acked-by: Andreas Dilger CC: hpdd-discuss@lists.01.org Signed-off-by: Jan Kara Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/rw26.c b/drivers/staging/lustre/lustre/llite/rw26.c index 96c29ad2fc8c..7e3e0967993b 100644 --- a/drivers/staging/lustre/lustre/llite/rw26.c +++ b/drivers/staging/lustre/lustre/llite/rw26.c @@ -202,11 +202,8 @@ static inline int ll_get_user_pages(int rw, unsigned long user_addr, OBD_ALLOC_LARGE(*pages, *max_pages * sizeof(**pages)); if (*pages) { - down_read(¤t->mm->mmap_sem); - result = get_user_pages(current, current->mm, user_addr, - *max_pages, (rw == READ), 0, *pages, - NULL); - up_read(¤t->mm->mmap_sem); + result = get_user_pages_fast(user_addr, *max_pages, + (rw == READ), *pages); if (unlikely(result <= 0)) OBD_FREE_LARGE(*pages, *max_pages * sizeof(**pages)); }