• Andrew Morton's avatar
    [PATCH] debug: check page refcount in __free_pages_ok() · 63a07153
    Andrew Morton authored
    Add a BUG() check to __free_pages_ok() - to catch someone freeing a
    page which has a non-zero refcount.  Actually, this check is mainly to
    catch someone (ie: shrink_cache()) incrementing a page's refcount
    shortly after it has been freed
    
    Also clean up __free_pages_ok() a bit and convert lots of BUGs to BUG_ON.
    63a07153
page_alloc.c 22.7 KB