From: Andrea Arcangeli Date: Thu, 13 Jan 2011 23:46:38 +0000 (-0800) Subject: thp: comment reminder in destroy_compound_page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59ff421631295cd54dbf75dcc53d27e84af6d9c0;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git thp: comment reminder in destroy_compound_page Warn destroy_compound_page that __split_huge_page_refcount is heavily dependent on its internal behavior. Signed-off-by: Andrea Arcangeli Acked-by: Rik van Riel Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8be81422d4b..6e62d5f9d40 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -357,6 +357,7 @@ void prep_compound_page(struct page *page, unsigned long order) } } +/* update __split_huge_page_refcount if you change this function */ static int destroy_compound_page(struct page *page, unsigned long order) { int i;