btrfs: extent-tree: Use ref_node to replace unneeded parameters in __inc_extent_ref...
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 17 Mar 2015 08:59:47 +0000 (16:59 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:25:18 +0000 (09:25 -0700)
commitc682f9b3c2e091f3211ca68585be39f2a2beb8d0
tree22bcdd24bbb4e0ba3eeb6e8c34bd4e6bbfcd73c5
parent9c542136fd94941572762e7955e6a054b23e97f7
btrfs: extent-tree: Use ref_node to replace unneeded parameters in __inc_extent_ref() and __free_extent()

__btrfs_inc_extent_ref() and __btrfs_free_extent() have already had too
many parameters, but three of them can be extracted from
btrfs_delayed_ref_node struct.

So use btrfs_delayed_ref_node struct as a single parameter to replace
the bytenr/num_byte/no_quota parameters.

The real objective of this patch is to allow btrfs_qgroup_record_ref()
get the delayed_ref_node in incoming qgroup patches.

Other functions calling btrfs_qgroup_record_ref() are not affected since
the rest will only add/sub exclusive extents, where node is not used.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c