]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/util.c
Merge branch 'for-4.18/wacom' into for-linus
[linux.git] / mm / util.c
index 1fc4fa7576f762bbbf341f056ca6d0be803a423f..45fc3169e7b0fdb2677db32083615c12bd5f4b7c 100644 (file)
--- a/mm/util.c
+++ b/mm/util.c
@@ -297,8 +297,10 @@ void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack)
 /*
  * Like get_user_pages_fast() except its IRQ-safe in that it won't fall
  * back to the regular GUP.
- * If the architecture not support this function, simply return with no
- * page pinned
+ * Note a difference with get_user_pages_fast: this always returns the
+ * number of pages pinned, 0 if no pages were pinned.
+ * If the architecture does not support this function, simply return with no
+ * pages pinned.
  */
 int __weak __get_user_pages_fast(unsigned long start,
                                 int nr_pages, int write, struct page **pages)