btrfs: Use init_delayed_ref_common in add_delayed_data_ref
authorNikolay Borisov <nborisov@suse.com>
Tue, 24 Apr 2018 14:18:19 +0000 (17:18 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:31 +0000 (18:07 +0200)
commitc812c8a857a00acae78341d5d4702eb8d7d02661
treed9626b80cfc703848901c58ddfbced9de4dee68a
parent646f4dd76fb3ac0d1e8677890522d4c044ee2f06
btrfs: Use init_delayed_ref_common in add_delayed_data_ref

Use the newly introduced helper and remove the duplicate code.  No
functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c