btrfs: pass the root to add_keyed_refs
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:31 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:47 +0000 (15:09 +0100)
commit98cc42227a1b9b0fb6e89729d08f87f9356bb846
treebe3cc47daa836a192e99fd3ede56980c000312b3
parent7a60751a33d9fdd1e17e77bd379aefe4ede44aa7
btrfs: pass the root to add_keyed_refs

We pass in the path, but use btrfs_next_item() using the root we
searched with.  Pass the root down to add_keyed_refs() instead of the
fs_info so we can continue to use the same root we searched with.

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