• Chris Mason's avatar
    Btrfs: refill block reserves during truncate · 28f75a0e
    Chris Mason authored
    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: default avatarChris Mason <clm@fb.com>
    28f75a0e
ctree.h 135 KB