aboutsummaryrefslogtreecommitdiffstats
path: root/mm/gup.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/gup.c')
-rw-r--r--mm/gup.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mm/gup.c b/mm/gup.c
index f76e77a2d34b..aa43620a3270 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -385,11 +385,17 @@ static struct page *follow_p4d_mask(struct vm_area_struct *vma,
385 * @vma: vm_area_struct mapping @address 385 * @vma: vm_area_struct mapping @address
386 * @address: virtual address to look up 386 * @address: virtual address to look up
387 * @flags: flags modifying lookup behaviour 387 * @flags: flags modifying lookup behaviour
388 * @page_mask: on output, *page_mask is set according to the size of the page 388 * @ctx: contains dev_pagemap for %ZONE_DEVICE memory pinning and a
389 * pointer to output page_mask
389 * 390 *
390 * @flags can have FOLL_ flags set, defined in <linux/mm.h> 391 * @flags can have FOLL_ flags set, defined in <linux/mm.h>
391 * 392 *
392 * Returns the mapped (struct page *), %NULL if no mapping exists, or 393 * When getting pages from ZONE_DEVICE memory, the @ctx->pgmap caches
394 * the device's dev_pagemap metadata to avoid repeating expensive lookups.
395 *
396 * On output, the @ctx->page_mask is set according to the size of the page.
397 *
398 * Return: the mapped (struct page *), %NULL if no mapping exists, or
393 * an error pointer if there is a mapping to something not represented 399 * an error pointer if there is a mapping to something not represented
394 * by a page descriptor (see also vm_normal_page()). 400 * by a page descriptor (see also vm_normal_page()).
395 */ 401 */