rapidio: switch to get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6ed2288ca9
commit
0ca36a6bbd
@ -889,11 +889,9 @@ rio_dma_transfer(struct file *filp, u32 transfer_mode,
|
|||||||
goto err_req;
|
goto err_req;
|
||||||
}
|
}
|
||||||
|
|
||||||
pinned = get_user_pages_unlocked(
|
pinned = get_user_pages_fast(
|
||||||
(unsigned long)xfer->loc_addr & PAGE_MASK,
|
(unsigned long)xfer->loc_addr & PAGE_MASK,
|
||||||
nr_pages,
|
nr_pages, dir == DMA_FROM_DEVICE, page_list);
|
||||||
page_list,
|
|
||||||
dir == DMA_FROM_DEVICE ? FOLL_WRITE : 0);
|
|
||||||
|
|
||||||
if (pinned != nr_pages) {
|
if (pinned != nr_pages) {
|
||||||
if (pinned < 0) {
|
if (pinned < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user