]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: remove no longer used delayed ref head search functionality
authorFilipe Manana <fdmanana@suse.com>
Thu, 24 Oct 2024 11:07:51 +0000 (12:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:21 +0000 (14:34 +0100)
commit7f13360ef954ed18ea51eea1171a7623b4d3233f
tree50d002e07c7a22b67e2eb4b4a86e73bd29bba0f4
parent928ed1349dd7ca9028ceef5c344391105351e331
btrfs: remove no longer used delayed ref head search functionality

After the previous patch, which converted the rb-tree used to track
delayed ref heads into an xarray, the find_ref_head() function is now
used only by one caller which always passes false to the 'return_bigger'
argument. So remove the 'return_bigger' logic, simplifying the function,
and move all the function code to the single 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