diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-03-17 16:59:47 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-06-10 09:25:18 -0700 |
commit | c682f9b3c2e091f3211ca68585be39f2a2beb8d0 (patch) | |
tree | 22bcdd24bbb4e0ba3eeb6e8c34bd4e6bbfcd73c5 /fs/btrfs/qgroup.c | |
parent | 9c542136fd94941572762e7955e6a054b23e97f7 (diff) | |
download | lwn-c682f9b3c2e091f3211ca68585be39f2a2beb8d0.tar.gz lwn-c682f9b3c2e091f3211ca68585be39f2a2beb8d0.zip |
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>
Diffstat (limited to 'fs/btrfs/qgroup.c')
0 files changed, 0 insertions, 0 deletions