• Q
    btrfs: extent-tree: Use ref_node to replace unneeded parameters in... · c682f9b3
    Qu Wenruo 提交于
    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: NQu Wenruo <quwenruo@cn.fujitsu.com>
    Signed-off-by: NChris Mason <clm@fb.com>
    c682f9b3
extent-tree.c 273.9 KB