]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: simplify obtaining a delayed ref head
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Oct 2024 11:40:08 +0000 (12:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:20 +0000 (14:34 +0100)
commita98048e10d44569b8d5ba6edcb20992cf57ed816
treea69479a33be2863fabd9202641faf10ca5fd8c1b
parent7ef360488600e8b7c131306b9f5ed7e42202b487
btrfs: simplify obtaining a delayed ref head

Instead of doing it in two steps outside of delayed-ref.c, leaking low
level details such as locking, move the logic entirely to delayed-ref.c
under btrfs_select_ref_head(), reducing code and making things simpler
for the caller.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c