Commit 7795912c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

mm: document PageHuge somewhat

Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 45ec1690
...@@ -671,6 +671,11 @@ static void prep_compound_gigantic_page(struct page *page, unsigned long order) ...@@ -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) int PageHuge(struct page *page)
{ {
compound_page_dtor *dtor; compound_page_dtor *dtor;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment