btrfs: extract the reference dropping code into it's own helper
authorJosef Bacik <josef@toxicpanda.com>
Tue, 7 May 2024 18:12:09 +0000 (14:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:24 +0000 (15:33 +0200)
commitacb9b4766cb2da41274189261810627149166d61
tree02d315d8e5c5940af64a31da5f5769476beab77a
parent2b73c7e761c4912209bbd2baf6cf774a9cab8123
btrfs: extract the reference dropping code into it's own helper

This is a big chunk of code in do_walk_down() that will conditionally
remove the reference for the child block we're currently evaluating.
Extract it out into it's own helper and call that from do_walk_down()
instead.

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/extent-tree.c