From: Chris Mason Date: Wed, 4 Feb 2009 14:31:28 +0000 (-0500) Subject: Btrfs: change btrfs_del_leaf to drop locks earlier X-Git-Tag: v2.6.29-rc4~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d081c41a4f98aecb5e86ef7d3e644cc7b52131f;p=pandora-kernel.git Btrfs: change btrfs_del_leaf to drop locks earlier btrfs_del_leaf does two things. First it removes the pointer in the parent, and then it frees the block that has the leaf. It has the parent node locked for both operations. But, it only needs the parent locked while it is deleting the pointer. After that it can safely free the block without the parent locked. Signed-off-by: Chris Mason --- Reading git-diff-tree failed