]> www.infradead.org Git - nvme.git/commit
btrfs: unify logic to decide if we need to walk down into a node during snapshot...
authorJosef Bacik <josef@toxicpanda.com>
Tue, 7 May 2024 18:12:08 +0000 (14:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:24 +0000 (15:33 +0200)
commit2b73c7e761c4912209bbd2baf6cf774a9cab8123
tree824bfb50e313d2d0f4b55c7c207db0d412af22cc
parent4c4686d19dbaaaf46c5ac295e6e27580d514c4f5
btrfs: unify logic to decide if we need to walk down into a node during snapshot delete

We currently duplicate the logic for walking into a node during snapshot
delete.  In one case it is during the actual delete, and in the other we
use it for deciding if we should reada the block or not.

Factor this code into it's own helper and comment fully what we're
doing, and then update the two users to use the new helper.

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