summaryrefslogtreecommitdiff
path: root/drivers/rapidio
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-01-29 11:12:00 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-23 06:14:14 +0300
commit0ca36a6bbd85bad72596a15e1505483352333c88 (patch)
tree2307ef88f6f784655f3c8007c9bdd7507f4e1bde /drivers/rapidio
parent6ed2288ca93479f801f49daf9b6d674701f4c28e (diff)
downloadlinux-0ca36a6bbd85bad72596a15e1505483352333c88.tar.xz
rapidio: switch to get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/rapidio')
-rw-r--r--drivers/rapidio/devices/rio_mport_cdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/rapidio/devices/rio_mport_cdev.c b/drivers/rapidio/devices/rio_mport_cdev.c
index 5beb0c361076..cf8e4ec2fd48 100644
--- a/drivers/rapidio/devices/rio_mport_cdev.c
+++ b/drivers/rapidio/devices/rio_mport_cdev.c
@@ -889,11 +889,9 @@ rio_dma_transfer(struct file *filp, u32 transfer_mode,
goto err_req;
}
- pinned = get_user_pages_unlocked(
+ pinned = get_user_pages_fast(
(unsigned long)xfer->loc_addr & PAGE_MASK,
- nr_pages,
- page_list,
- dir == DMA_FROM_DEVICE ? FOLL_WRITE : 0);
+ nr_pages, dir == DMA_FROM_DEVICE, page_list);
if (pinned != nr_pages) {
if (pinned < 0) {