btrfs: delayed-ref: Use btrfs_ref to refactor btrfs_add_delayed_tree_ref()
authorQu Wenruo <wqu@suse.com>
Thu, 4 Apr 2019 06:45:31 +0000 (14:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:48 +0000 (19:02 +0200)
commited4f255b9bacb774c99ded17647f138c3f61546d
tree1763f6b02732a5fc06eae8cca8606bb6763bdd1d
parentdd28b6a5aad306c417477db700ed0848c923a31c
btrfs: delayed-ref: Use btrfs_ref to refactor btrfs_add_delayed_tree_ref()

btrfs_add_delayed_tree_ref() has a longer and longer parameter list, and
some callers like btrfs_inc_extent_ref() are using @owner as level for
delayed tree ref.

Instead of making the parameter list longer, use btrfs_ref to refactor
it, so each parameter assignment should be self-explaining without dirty
level/owner trick, and provides the basis for later refactoring.

Signed-off-by: Qu Wenruo <wqu@suse.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