]> 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)
commit4fbbe95b77a5d38b7194d26752c32a2b9f8951b0
tree49c594ecc27d89ba14aa75511c536f066797589f
parenta5b9f204356639042b2d659df6914ac2804b80b3
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