Skip to content
Commit 28f75a0e authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: refill block reserves during truncate



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>
parent 1262133b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment