From: Andrea Arcangeli Date: Thu, 13 Jan 2011 23:46:38 +0000 (-0800) Subject: thp: comment reminder in destroy_compound_page X-Git-Tag: firefly_0821_release~7613^2~2804 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59ff421631295cd54dbf75dcc53d27e84af6d9c0;p=firefly-linux-kernel-4.4.55.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 8be81422d4bd..6e62d5f9d40b 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;