Skip to content
Commit 907cbceb authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: optimize how we account for space in truncate



Currently we're starting and stopping a transaction for no real reason, so kill
that and just reserve enough space as if we can truncate all in one transaction.
Also use btrfs_block_rsv_check() for our reserve to minimize the amount of space
we may have to allocate for our slack space.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 13553e52
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