]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: use helper to find first ref head at btrfs_destroy_delayed_refs()
authorFilipe Manana <fdmanana@suse.com>
Fri, 18 Oct 2024 10:29:37 +0000 (11:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:20 +0000 (14:34 +0100)
commit055903c4e7fa2945b1b4014726e7268056047242
treea2e87168887c2089ad96f156d0d25380f75b176d
parent8d07a8f4c6415c71a9e0232aef8c2aee39620fca
btrfs: use helper to find first ref head at btrfs_destroy_delayed_refs()

Instead of open coding it, use the find_first_ref_head() helper at
btrfs_destroy_delayed_refs(). This avoids duplicating the logic,
specially with the upcoming changes in subsequent patches.

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