1
0
Fork 0

pvr2fs: use get_user_pages_fast()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
hifive-unleashed-5.1
Al Viro 2017-09-22 18:22:05 -04:00
parent e1a58a5421
commit 8dcf932d54
1 changed files with 1 additions and 3 deletions

View File

@ -686,9 +686,7 @@ static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
if (!pages)
return -ENOMEM;
ret = get_user_pages_unlocked((unsigned long)buf, nr_pages, pages,
FOLL_WRITE);
ret = get_user_pages_fast((unsigned long)buf, nr_pages, true, pages);
if (ret < nr_pages) {
nr_pages = ret;
ret = -EINVAL;