diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -318,7 +318,7 @@ EXPORT_SYMBOL_GPL(__get_user_pages_fast); | |||
318 | * get_user_pages_fast() - pin user pages in memory | 318 | * get_user_pages_fast() - pin user pages in memory |
319 | * @start: starting user address | 319 | * @start: starting user address |
320 | * @nr_pages: number of pages from start to pin | 320 | * @nr_pages: number of pages from start to pin |
321 | * @write: whether pages will be written to | 321 | * @gup_flags: flags modifying pin behaviour |
322 | * @pages: array that receives pointers to the pages pinned. | 322 | * @pages: array that receives pointers to the pages pinned. |
323 | * Should be at least nr_pages long. | 323 | * Should be at least nr_pages long. |
324 | * | 324 | * |
@@ -339,10 +339,10 @@ EXPORT_SYMBOL_GPL(__get_user_pages_fast); | |||
339 | * were pinned, returns -errno. | 339 | * were pinned, returns -errno. |
340 | */ | 340 | */ |
341 | int __weak get_user_pages_fast(unsigned long start, | 341 | int __weak get_user_pages_fast(unsigned long start, |
342 | int nr_pages, int write, struct page **pages) | 342 | int nr_pages, unsigned int gup_flags, |
343 | struct page **pages) | ||
343 | { | 344 | { |
344 | return get_user_pages_unlocked(start, nr_pages, pages, | 345 | return get_user_pages_unlocked(start, nr_pages, pages, gup_flags); |
345 | write ? FOLL_WRITE : 0); | ||
346 | } | 346 | } |
347 | EXPORT_SYMBOL_GPL(get_user_pages_fast); | 347 | EXPORT_SYMBOL_GPL(get_user_pages_fast); |
348 | 348 | ||