commit | 907cbcebd4e5f641faf08601f216b1ceb6cb3bdf | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Mon Aug 08 13:46:15 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Wed Oct 19 15:12:35 2011 -0400 |
tree | 2f605e19e8d44360c9eb4033adda940e9e5ab007 | |
parent | 13553e5221d6901a33b3f2157a389de085c161fe [diff] |
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>