提交 f4ee2ccb 编写于 作者: J Jan Kara 提交者: Greg Kroah-Hartman

ced1401: Convert driver to use get_user_pages_fast()

Signed-off-by: NJan Kara <jack@suse.cz>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d1a168ec
......@@ -692,10 +692,7 @@ static int SetArea(DEVICE_EXTENSION *pdx, int nArea, char __user *puBuf,
__func__, puBuf, dwLength, bCircular);
/* To pin down user pages we must first acquire the mapping semaphore. */
down_read(&current->mm->mmap_sem); /* get memory map semaphore */
nPages = get_user_pages(current, current->mm, ulStart, len, 1, 0,
pPages, NULL);
up_read(&current->mm->mmap_sem); /* release the semaphore */
nPages = get_user_pages_fast(ulStart, len, 1, pPages);
dev_dbg(&pdx->interface->dev, "%s nPages = %d", __func__, nPages);
if (nPages > 0) { /* if we succeeded */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册