summaryrefslogtreecommitdiff
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2012-10-08 16:34:11 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 16:23:03 +0900
commit7795912c257bc068445f1db429c94d6b4b6ee604 (patch)
treebaf49e5f849cc9b36e989ae3a0c02e7d55d30021 /mm/hugetlb.c
parent45ec16908e84e00d847e9063231fb3a75e6366bc (diff)
downloadlwn-7795912c257bc068445f1db429c94d6b4b6ee604.tar.gz
lwn-7795912c257bc068445f1db429c94d6b4b6ee604.zip
mm: document PageHuge somewhat
Acked-by: David Rientjes <rientjes@google.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 993f7c1820a8..59a0059b39e2 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -671,6 +671,11 @@ static void prep_compound_gigantic_page(struct page *page, unsigned long order)
}
}
+/*
+ * PageHuge() only returns true for hugetlbfs pages, but not for normal or
+ * transparent huge pages. See the PageTransHuge() documentation for more
+ * details.
+ */
int PageHuge(struct page *page)
{
compound_page_dtor *dtor;