btrfs: initialize btrfs_delayed_ref_head with btrfs_ref
authorJosef Bacik <josef@toxicpanda.com>
Sat, 13 Apr 2024 00:03:09 +0000 (20:03 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:04 +0000 (21:31 +0200)
commit0509cc56619d63e946f1212d0f40767728e18fbc
tree29b0a62d4d5bd7888c3085f1df8c8bc788914d1e
parentda3c5485419767d0943480b7e30066691966ca9a
btrfs: initialize btrfs_delayed_ref_head with btrfs_ref

We are calling init_delayed_ref_head with all of the elements from
btrfs_ref, clean this up to simply pass in the btrfs_ref and initialize
the btrfs_delayed_ref_head with the values from the btrfs_ref directly.

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