Explorar el Código

pvr2fs: use get_user_pages_fast()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro hace 7 años
padre
commit
8dcf932d54
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      drivers/video/fbdev/pvr2fb.c

+ 1 - 3
drivers/video/fbdev/pvr2fb.c

@@ -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,
-			FOLL_WRITE);
-
+	ret = get_user_pages_fast((unsigned long)buf, nr_pages, true, pages);
 	if (ret < nr_pages) {
 	if (ret < nr_pages) {
 		nr_pages = ret;
 		nr_pages = ret;
 		ret = -EINVAL;
 		ret = -EINVAL;