diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-01-29 03:12:00 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 23:14:14 -0400 |
commit | 0ca36a6bbd85bad72596a15e1505483352333c88 (patch) | |
tree | 2307ef88f6f784655f3c8007c9bdd7507f4e1bde /drivers | |
parent | 6ed2288ca93479f801f49daf9b6d674701f4c28e (diff) | |
download | linux-rt-0ca36a6bbd85bad72596a15e1505483352333c88.tar.gz |
rapidio: switch to get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rapidio/devices/rio_mport_cdev.c | 6 |
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) { |