From: Qu Wenruo Date: Tue, 17 Mar 2015 08:59:47 +0000 (+0800) Subject: btrfs: extent-tree: Use ref_node to replace unneeded parameters in __inc_extent_ref... X-Git-Tag: omap-for-v4.2/fixes-rc1^2~69^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c682f9b3c2e091f3211ca68585be39f2a2beb8d0;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed