]> git.baikalelectronics.ru Git - kernel.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)
commitd39cca9014ce3cf469cbb84e77136a2c48cc230f
tree441e557a52e85a71e60da81d578bcb22fd4760d7
parent90a62999013238ab46b49b3d41f1b9079562aab9
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