From: Josef Bacik Date: Mon, 8 Aug 2011 17:46:15 +0000 (-0400) Subject: Btrfs: optimize how we account for space in truncate X-Git-Tag: v3.2-rc1~21^2~24^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=907cbcebd4e5f641faf08601f216b1ceb6cb3bdf;p=pandora-kernel.git 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 --- Reading git-diff-tree failed