diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -283,7 +283,8 @@ EXPORT_SYMBOL_GPL(__get_user_pages_fast); | |||
283 | int __weak get_user_pages_fast(unsigned long start, | 283 | int __weak get_user_pages_fast(unsigned long start, |
284 | int nr_pages, int write, struct page **pages) | 284 | int nr_pages, int write, struct page **pages) |
285 | { | 285 | { |
286 | return get_user_pages_unlocked(start, nr_pages, write, 0, pages); | 286 | return get_user_pages_unlocked(start, nr_pages, pages, |
287 | write ? FOLL_WRITE : 0); | ||
287 | } | 288 | } |
288 | EXPORT_SYMBOL_GPL(get_user_pages_fast); | 289 | EXPORT_SYMBOL_GPL(get_user_pages_fast); |
289 | 290 | ||