mm/gup: Mark lock taken only after a successful retake
[linux-2.6-microblaze.git] / mm / hugetlb.c
index f9ea1e5..f5fb53f 100644 (file)
@@ -2010,6 +2010,7 @@ struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
  * of size 'delta'.
  */
 static int gather_surplus_pages(struct hstate *h, int delta)
+       __must_hold(&hugetlb_lock)
 {
        struct list_head surplus_list;
        struct page *page, *tmp;