]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: simplify btrfs_backref_release_cache()
authorJosef Bacik <josef@toxicpanda.com>
Thu, 3 Oct 2024 15:43:10 +0000 (11:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:15 +0000 (14:53 +0100)
commit29e74a12a31456ee29d83ea83a545767111517de
tree1bacd1bd278cd0462a068be712580d89c77ab51c
parent4eb8064dc9230a2f58c9df13d59e53265b0cc8e6
btrfs: simplify btrfs_backref_release_cache()

We rely on finding all our nodes on the various lists in the backref
cache, when they are all also in the rbtree.  Instead just search
through the rbtree and free everything.

Reviewed-by: Boris Burkov <boris@bur.io>
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/backref.c