btrfs: move ref_root into btrfs_ref
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Apr 2024 23:37:53 +0000 (19:37 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:04 +0000 (21:31 +0200)
commitf2e69a77aa5150d8a8ea13e45aad6dc42e581591
tree390183cf4617a22e4807ac9b1ffb692295f92093
parent4d09b4e942bce27c6fa66f3582dc639417107e2d
btrfs: move ref_root into btrfs_ref

We have this in both btrfs_tree_ref and btrfs_data_ref, which is just
wasting space and making the code more complicated.  Move this into
btrfs_ref proper and update all the call sites to do the assignment in
btrfs_ref.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
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/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode-item.c
fs/btrfs/ref-verify.c
fs/btrfs/relocation.c
fs/btrfs/tree-log.c