Commit a6e0d12f authored by Al Viro's avatar Al Viro

via_dmablit(): use get_user_pages_fast()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1aaa09ca
......@@ -238,9 +238,9 @@ via_lock_all_dma_pages(drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer)
vsg->pages = vzalloc(sizeof(struct page *) * vsg->num_pages);
if (NULL == vsg->pages)
return -ENOMEM;
ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr,
vsg->num_pages, vsg->pages,
(vsg->direction == DMA_FROM_DEVICE) ? FOLL_WRITE : 0);
ret = get_user_pages_fast((unsigned long)xfer->mem_addr,
vsg->num_pages, vsg->direction == DMA_FROM_DEVICE,
vsg->pages);
if (ret != vsg->num_pages) {
if (ret < 0)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment