mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
pvr2fs: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e1a58a5421
commit
8dcf932d54
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user