btrfs: move ref specific initialization into init_delayed_ref_common
authorJosef Bacik <josef@toxicpanda.com>
Sat, 13 Apr 2024 00:09:45 +0000 (20:09 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:04 +0000 (21:31 +0200)
commit0ea4703cc27e4e0f4fd8a9403ecae21a8879e7e0
tree5e2adfc26909c5c933de7e98dc2e7a1160a8dae5
parent0509cc56619d63e946f1212d0f40767728e18fbc
btrfs: move ref specific initialization into init_delayed_ref_common

Now that the btrfs_delayed_ref_node contains a union of the data and
metadata specific information we can move the initialization into
init_delayed_ref_common and just use the btrfs_ref to initialize the
correct fields of the reference.

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