btrfs: unify the btrfs_add_delayed_*_ref helpers into one helper
authorJosef Bacik <josef@toxicpanda.com>
Sat, 13 Apr 2024 00:43:09 +0000 (20:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:05 +0000 (21:31 +0200)
commitf75464f7bbbdd3bd63b91a1f023e26ef85e348c3
tree1c2b82b38d5e2a4ea6a4abf718c37102209a7ae1
parent1bff6d4f873790cfc675afce9860208576508c5a
btrfs: unify the btrfs_add_delayed_*_ref helpers into one helper

Now that these helpers are identical, create a helper function that
handles everything properly and strip the individual helpers down to use
just the common helper. This cleans up a significant amount of
duplicated code.

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