]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81964de61d24e51af72242ad4d9cd2d65894cd51
treee85c9b9bf6fa6694a67cf79698d369ab2ff5d912
parent7fd2bb49bd1d634322e5309aee9f0092274d5af0
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