• A
    ext4: punch out extents · d583fb87
    Allison Henderson 提交于
    This patch modifies the truncate routines to support hole punching
    Below is a brief summary of the patches changes:
    
    - Added end param to ext_ext4_rm_leaf
            This function has been modified to accept an end parameter
            which enables it to punch holes in leafs instead of just
            truncating them.
    
    - Implemented the "remove head" case in the ext_remove_blocks routine
            This routine is used by ext_ext4_rm_leaf to remove the tail
            of an extent during a truncate.  The new ext_ext4_rm_leaf
            routine will now also use it to remove the head of an extent in the
            case that the hole covers a region of blocks at the beginning
            of an extent.
    
    - Added "end" param to ext4_ext_remove_space routine
            This function has been modified to accept a stop parameter, which
            is passed through to ext4_ext_rm_leaf.
    
    [ext4 punch hole patch series 3/5 v6] 
    Signed-off-by: NAllison Henderson <achender@us.ibm.com>
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    d583fb87
extents.c 106.2 KB