• A
    ext4: fix fsx truncate failure · 189e868f
    Allison Henderson 提交于
    While running extended fsx tests to verify the first
    two patches, a similar bug was also found in the
    truncate operation.
    
    This bug happens because the truncate routine only zeros
    the unblock aligned portion of the last page.  This means
    that the block aligned portions of the page appearing after
    i_size are left unzeroed, and the buffer heads still mapped.
    
    This bug is corrected by using ext4_discard_partial_page_buffers
    in the truncate routine to zero the partial page and unmap
    the buffer headers.
    Signed-off-by: NAllison Henderson <achender@linux.vnet.ibm.com>
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    189e868f
indirect.c 43.9 KB