lkml.org 
[lkml]   [2010]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 14 of 66] comment reminder in destroy_compound_page
    Date
    From
    From: Andrea Arcangeli <aarcange@redhat.com>

    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>
    ---

    diff --git a/mm/page_alloc.c b/mm/page_alloc.c
    --- a/mm/page_alloc.c
    +++ b/mm/page_alloc.c
    @@ -352,6 +352,7 @@ void prep_compound_page(struct page *pag
    }
    }

    +/* update __split_huge_page_refcount if you change this function */
    static int destroy_compound_page(struct page *page, unsigned long order)
    {
    int i;

    \
     
     \ /
      Last update: 2010-11-03 16:35    [W:3.098 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site