[PATCH 09/26] crystalhd: Convert crystalhd_map_dio() to use get_user_pages_fast()

From: Jan Kara
Date: Wed Oct 02 2013 - 10:32:53 EST


CC: Naren Sankar <nsankar@xxxxxxxxxxxx>
CC: Jarod Wilson <jarod@xxxxxxxxxxxx>
CC: Scott Davilla <davilla@xxxxxxx>
CC: Manu Abraham <abraham.manu@xxxxxxxxx>
Signed-off-by: Jan Kara <jack@xxxxxxx>
---
drivers/staging/crystalhd/crystalhd_misc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/staging/crystalhd/crystalhd_misc.c b/drivers/staging/crystalhd/crystalhd_misc.c
index 51f698052aff..f2d350985e46 100644
--- a/drivers/staging/crystalhd/crystalhd_misc.c
+++ b/drivers/staging/crystalhd/crystalhd_misc.c
@@ -751,10 +751,7 @@ enum BC_STATUS crystalhd_map_dio(struct crystalhd_adp *adp, void *ubuff,
}
}

- down_read(&current->mm->mmap_sem);
- res = get_user_pages(current, current->mm, uaddr, nr_pages, rw == READ,
- 0, dio->pages, NULL);
- up_read(&current->mm->mmap_sem);
+ res = get_user_pages_fast(uaddr, nr_pages, rw == READ, dio->pages);

/* Save for release..*/
dio->sig = crystalhd_dio_locked;
--
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/