]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove superfluous chunk_tree argument from btrfs_alloc_dev_extent
authorNikolay Borisov <nborisov@suse.com>
Fri, 18 Aug 2017 14:58:23 +0000 (17:58 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2017 16:30:30 +0000 (18:30 +0200)
commit766c6a8134f63d219ef98a81cc43eb50615fcc43
tree49c594ecc27d89ba14aa75511c536f066797589f
parent31c8b990084cf3eb43bb956b0676d414767ea8c7
btrfs: remove superfluous chunk_tree argument from btrfs_alloc_dev_extent

Currently this function is always called with the object id of the root
key of the chunk_tree, which is always BTRFS_CHUNK_TREE_OBJECTID. So
let's subsume it straight into the function itself. No functional
change.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c