]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/sh/mm/gup.c
mm: replace get_user_pages_unlocked() write/force parameters with gup_flags
[karo-tx-linux.git] / arch / sh / mm / gup.c
index 40fa6c8adc43a361c60ffee8929aa39d2449e926..063c298ba56cc900479eb9b50a8c9587678f6893 100644 (file)
@@ -258,7 +258,8 @@ slow_irqon:
                pages += nr;
 
                ret = get_user_pages_unlocked(start,
-                       (end - start) >> PAGE_SHIFT, write, 0, pages);
+                       (end - start) >> PAGE_SHIFT, pages,
+                       write ? FOLL_WRITE : 0);
 
                /* Have to be a bit careful with return values */
                if (nr > 0) {