OSDN Git Service

btrfs: Remove redundant argument of __link_block_group
authorNikolay Borisov <nborisov@suse.com>
Mon, 21 Aug 2017 09:43:50 +0000 (12:43 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:56 +0000 (12:27 +0100)
commitc434d21c6442b107af7030be2d716cf6c89c5606
treee85c9b9bf6fa6694a67cf79698d369ab2ff5d912
parent1efb72a3c3ea8e430d1984774692ecbe3235600a
btrfs: Remove redundant argument of __link_block_group

__link_block_group is called from only 2 places and at each call site the
space_info being passed is the same as the space info assigned to the passed
cache struct. Let's remove the redundant argument and make the function
reference the space_info from the passed block_group_cache. No functional
changes

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ renamed to link_block_group ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c