commit | 4d081c41a4f98aecb5e86ef7d3e644cc7b52131f | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Wed Feb 04 09:31:28 2009 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Wed Feb 04 09:31:28 2009 -0500 |
tree | 441e557a52e85a71e60da81d578bcb22fd4760d7 | |
parent | 06d9a8d7c24fe22836bf0b0f82db59d6f98e271e [diff] |
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>