• C
    Btrfs: refill block reserves during truncate · 28f75a0e
    Chris Mason 提交于
    When truncate starts, it allocates some space in the block reserves so
    that we'll have enough to update metadata along the way.
    
    For very large files, we can easily go through all of that space as we
    loop through the extents.  This changes truncate to refill the space
    reservation as it progresses through the file.
    Signed-off-by: NChris Mason <clm@fb.com>
    28f75a0e
inode.c 257.8 KB