From: Josef Bacik Date: Fri, 14 Oct 2011 18:46:51 +0000 (-0400) Subject: Btrfs: reserve some space for an orphan item when unlinking X-Git-Tag: v3.2-rc1~21^2~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3880a1b46d87a6b030c31889875befc745d95dff;p=pandora-kernel.git Btrfs: reserve some space for an orphan item when unlinking In __unlink_start_trans() if we don't have enough room for a reservation we will check to see if the unlink will free up space. If it does that's great, but we will still could add an orphan item, so we need to reserve enough space to add the orphan item. Do this and migrate the space the global reserve so it all works out right. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed