• Andrew Morton's avatar
    [PATCH] debug check for leaked blockdev buffers · 5226cca6
    Andrew Morton authored
    Having just fiddled with the refcounts of blockdev buffers, I want some
    way of assuring that the code is correct and is not leaking
    buffer_heads.
    
    There's no easy way to do this: if a blockdev page has pinned buffers
    then truncate_complete_page just cuts it loose and we leak memory.
    
    The patch adds a bit of debug code to catch these leaks.  This code,
    PF_RADIX_TREE and buffer_error() need to be removed later on.
    5226cca6
filemap.c 56.1 KB