소스 검색

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>
Andrea Arcangeli 14 년 전
부모
커밋
59ff421631
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mm/page_alloc.c

+ 1 - 0
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)
 static int destroy_compound_page(struct page *page, unsigned long order)
 {
 {
 	int i;
 	int i;