btrfs: locking: remove the recursion handling code
authorJosef Bacik <josef@toxicpanda.com>
Fri, 6 Nov 2020 21:27:32 +0000 (16:27 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:09 +0000 (15:54 +0100)
commit4048daedb910f83f080c6bb03c78af794aebdff5
treeb3ae0fc0160a80011c5a8d68076d6cfa719cb27f
parent2f5239dcb26b5037dc21b58fe8bb0e80243f4f6f
btrfs: locking: remove the recursion handling code

Now that we're no longer using recursion, rip out all of the supporting
code.  Follow up patches will clean up the callers of these functions.

The extent_buffer::lock_owner is still retained as it allows safety
checks in btrfs_init_new_buffer for the case that the free space cache
is corrupted and we try to allocate a block that we are currently using
and have locked in the path.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c