提交 8dcf932d 编写于 作者: A Al Viro

pvr2fs: use get_user_pages_fast()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 e1a58a54
...@@ -686,9 +686,7 @@ static ssize_t pvr2fb_write(struct fb_info *info, const char *buf, ...@@ -686,9 +686,7 @@ static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
if (!pages) if (!pages)
return -ENOMEM; return -ENOMEM;
ret = get_user_pages_unlocked((unsigned long)buf, nr_pages, pages, ret = get_user_pages_fast((unsigned long)buf, nr_pages, true, pages);
FOLL_WRITE);
if (ret < nr_pages) { if (ret < nr_pages) {
nr_pages = ret; nr_pages = ret;
ret = -EINVAL; ret = -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册