Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277029
b: refs/heads/master
c: b0365c8
h: refs/heads/master
i:
  277027: 31b196c
v: v3
  • Loading branch information
Hillf Danton authored and Linus Torvalds committed Dec 30, 2011
1 parent cc0c929 commit 362a2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34845636a184f3be91a531098192592cbe6db587
refs/heads/master: b0365c8d0cb6e79eb5f21418ae61ab511f31b575
2 changes: 1 addition & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ static int gather_surplus_pages(struct hstate *h, int delta)
h->resv_huge_pages += delta;
ret = 0;

spin_unlock(&hugetlb_lock);
/* Free the needed pages to the hugetlb pool */
list_for_each_entry_safe(page, tmp, &surplus_list, lru) {
if ((--needed) < 0)
Expand All @@ -915,6 +914,7 @@ static int gather_surplus_pages(struct hstate *h, int delta)
VM_BUG_ON(page_count(page));
enqueue_huge_page(h, page);
}
spin_unlock(&hugetlb_lock);

/* Free unnecessary surplus pages to the buddy allocator */
free:
Expand Down

0 comments on commit 362a2f1

Please sign in to comment.