Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ca36a6b authored by Al Viro's avatar Al Viro
Browse files

rapidio: switch to get_user_pages_fast()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6ed2288c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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) {