aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2015-11-10 17:45:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-10 19:32:11 -0500
commitd15c7c09325bcc5c924ae5ef52e2bc91b6753715 (patch)
treea9921c0a5373a421ebf1d5d6718752a5906d599c /mm
parente14231cfe70253cb3c32289d06407e68f4575939 (diff)
hugetlb: trivial comment fix
Recently alloc_buddy_huge_page() was renamed to __alloc_buddy_huge_page(), so let's sync comments. Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 7ce07d681265..827bb02a43a4 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2138,7 +2138,7 @@ static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count,
2138 * First take pages out of surplus state. Then make up the 2138 * First take pages out of surplus state. Then make up the
2139 * remaining difference by allocating fresh huge pages. 2139 * remaining difference by allocating fresh huge pages.
2140 * 2140 *
2141 * We might race with alloc_buddy_huge_page() here and be unable 2141 * We might race with __alloc_buddy_huge_page() here and be unable
2142 * to convert a surplus huge page to a normal huge page. That is 2142 * to convert a surplus huge page to a normal huge page. That is
2143 * not critical, though, it just means the overall size of the 2143 * not critical, though, it just means the overall size of the
2144 * pool might be one hugepage larger than it needs to be, but 2144 * pool might be one hugepage larger than it needs to be, but
@@ -2180,7 +2180,7 @@ static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count,
2180 * By placing pages into the surplus state independent of the 2180 * By placing pages into the surplus state independent of the
2181 * overcommit value, we are allowing the surplus pool size to 2181 * overcommit value, we are allowing the surplus pool size to
2182 * exceed overcommit. There are few sane options here. Since 2182 * exceed overcommit. There are few sane options here. Since
2183 * alloc_buddy_huge_page() is checking the global counter, 2183 * __alloc_buddy_huge_page() is checking the global counter,
2184 * though, we'll note that we're not allowed to exceed surplus 2184 * though, we'll note that we're not allowed to exceed surplus
2185 * and won't grow the pool anywhere else. Not until one of the 2185 * and won't grow the pool anywhere else. Not until one of the
2186 * sysctls are changed, or the surplus pages go out of use. 2186 * sysctls are changed, or the surplus pages go out of use.