From: Andrew Morton Date: Mon, 8 Oct 2012 23:34:11 +0000 (-0700) Subject: mm: document PageHuge somewhat X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7795912c257bc068445f1db429c94d6b4b6ee604;p=openwrt%2Fstaging%2Fblogic.git mm: document PageHuge somewhat Acked-by: David Rientjes Cc: Mel Gorman Cc: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;