• Andrew Morton's avatar
    [PATCH] hugetlbpage: reinitialise compound page destructor · b2a34aeb
    Andrew Morton authored
    From: David Gibson <david@gibson.dropbear.id.au>
    
    Currently the hugepage code stores the hugepage destructor in the mapping
    field of the second of the compound pages.  However, this field is never
    cleared again, which causes tracebacks from free_pages_check() if the
    hugepage is later destroyed by reducing the number in
    /proc/sys/vm/nr_hugepages.  This patch fixes the bug by clearing the
    mapping field when the hugepage is freed.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b2a34aeb
hugetlb.c 5.52 KB