mm/gup.c: Fix the comment of return value for populate_vma_page_range()
Subsystems (3)
PATCH 1/1 mm/gup.c: Fix the comment of return value for populate_vma_page_range()
The return value of populate_vma_page_range() is consistent with __get_user_pages(), and so is the function comment of return value.
Signed-off-by Tang Yizhou <[email protected]>
--- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/gup.c +2 -1
@@ -1386,7 +1386,8 @@ static __always_inline long __get_user_pages_locked(struct mm_struct *mm,* * This takes care of mlocking the pages too if VM_LOCKED is set. * -* return 0 on success, negative error code on error. +* Return either number of pages pinned in the vma, or a negative error +* code on error. * * vma->vm_mm->mmap_lock must be held. *
Signature · 1 line
2.17.1
Quoted 4 lines · Tang Yizhou
The return value of
populate_vma_page_range()is consistent with__get_user_pages(), and so is the function comment of return value.Signed-off-by Tang Yizhou <[email protected]>
Reviewed-by Ira Weiny <[email protected]>
Quoted 21 lines
--- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)mm/gup.c +2
-1@@ -1386,7 +1386,8 @@ static __always_inline long __get_user_pages_locked(struct mm_struct *mm,* * This takes care of mlocking the pages too if VM_LOCKED is set. * -* return 0 on success, negative error code on error. +* Return either number of pages pinned in the vma, or a negative error +* code on error. * * vma->vm_mm->mmap_lock must be held. * Signature · 1 line
2.17.1