summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2011-01-14 00:46:38 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 02:32:39 +0100
commit59ff421631295cd54dbf75dcc53d27e84af6d9c0 (patch)
tree2570c413cd0e5938ed5e9c09d00fe026bfa63ca4 /mm/page_alloc.c
parentthp: export maybe_mkwrite (diff)
downloadlinux-59ff421631295cd54dbf75dcc53d27e84af6d9c0.tar.xz
linux-59ff421631295cd54dbf75dcc53d27e84af6d9c0.zip
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 <aarcange@redhat.com> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--mm/page_alloc.c1
1 files changed, 1 insertions, 0 deletions
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;