• Allison Henderson's avatar
    ext4: fix fsx truncate failure · 189e868f
    Allison Henderson authored
    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: default avatarAllison Henderson <achender@linux.vnet.ibm.com>
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    189e868f
indirect.c 43.9 KB