From: Josef Bacik Date: Fri, 19 Aug 2011 14:29:59 +0000 (-0400) Subject: Btrfs: reduce the amount of space needed for truncates X-Git-Tag: v3.2-rc1~21^2~24^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07127184efb629f1336c0592bfdacec258cab731;p=pandora-kernel.git Btrfs: reduce the amount of space needed for truncates With btrfs_truncate_inode_items we always return if we have to go to another leaf, which makes us do our reservation again. This means we will only ever modify one leaf at a time, so we only need 1 items worth of slack space. Also, since we are deleting we will not be creating nodes as we go down, if anything we'll be free'ing them as we merge them together, so make a different calculation for truncate which will only have the worst case useage of COW'ing the entire path down to the leaf. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed