• Andrew Morton's avatar
    [PATCH] Allow truncate to discard unmapped buffers · 6c8dd336
    Andrew Morton authored
    The buffer state "uptodate, dirty, unmapped" is legal.  It occurs when
    a mapped page with attached buffers which is over a hole is dirtied.
    
    So discard_buffer() needs to be able to discard those buffers as well;
    otherwise the page ends up clean, with dirty buffers and is unfreeable.
    6c8dd336
buffer.c 57.2 KB