diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2011-01-13 15:46:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:32:39 -0800 |
commit | 59ff421631295cd54dbf75dcc53d27e84af6d9c0 (patch) | |
tree | 2570c413cd0e5938ed5e9c09d00fe026bfa63ca4 /mm | |
parent | 14fd403f2146f740942d78af4e0ee59396ad8eab (diff) | |
download | lwn-59ff421631295cd54dbf75dcc53d27e84af6d9c0.tar.gz lwn-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 'mm')
-rw-r--r-- | mm/page_alloc.c | 1 |
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; |