Skip to content
Commit 4d081c41 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 06d9a8d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment