]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cd6d8534f8a4b3cff4be8429695f1784b4dbec0
treeb3ae0fc0160a80011c5a8d68076d6cfa719cb27f
parent958e3ef5aaa47726be276115b50c2cd9f5e6b2d6
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