]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/pagewalk.c
pagewalk: add locking-rule comments
[karo-tx-linux.git] / mm / pagewalk.c
index ee4ff87c58c1ba83fec5af8fec903af9cb106cac..f7929406e77661d95bd88129de21a462b60c0be8 100644 (file)
@@ -181,6 +181,9 @@ static int walk_hugetlb_range(struct vm_area_struct *vma,
  *
  * If any callback returns a non-zero value, the walk is aborted and
  * the return value is propagated back to the caller. Otherwise 0 is returned.
+ *
+ * walk->mm->mmap_sem must be held for at least read if walk->hugetlb_entry
+ * is !NULL.
  */
 int walk_page_range(unsigned long addr, unsigned long end,
                    struct mm_walk *walk)