]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:25:05 +0000 (13:25 +0100)
commit51b03b7473a0d9dc4bc05ffed6c2c34fff26dc35
tree67bfdb9f5935a0956111ba66445bf0c401bf7cf8
parent20d96aa61607a65fd077dc0679ef9bdd19802b9d
btrfs: locking: remove the recursion handling code

[ Upstream commit 4048daedb910f83f080c6bb03c78af794aebdff5 ]

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>
Stable-dep-of: 97e86631bccd ("btrfs: don't set lock_owner when locking extent buffer for reading")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/locking.c