]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Btrfs: change btrfs_del_leaf to drop locks earlier
authorChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:31:28 +0000 (09:31 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:31:28 +0000 (09:31 -0500)
commit4d081c41a4f98aecb5e86ef7d3e644cc7b52131f
tree441e557a52e85a71e60da81d578bcb22fd4760d7
parent06d9a8d7c24fe22836bf0b0f82db59d6f98e271e
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 <chris.mason@oracle.com>
fs/btrfs/ctree.c