mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
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: Josef Bacik <josef@redhat.com>
This commit is contained in:
parent
13553e5221
commit
907cbcebd4
1 changed files with 29 additions and 29 deletions
Loading…
Add table
Add a link
Reference in a new issue