OSDN Git Service

btrfs: Remove chunk_objectid argument from btrfs_make_block_group
authorNikolay Borisov <nborisov@suse.com>
Thu, 27 Jul 2017 11:22:11 +0000 (14:22 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2017 15:47:42 +0000 (17:47 +0200)
commit0174484d619460a65e88f594c36983cd2b7f4128
treef78979163a43296459a6168e9b41cbd413932799
parent0dde10bed2c44a4024eb446cc72fe4e0cb97ec06
btrfs: Remove chunk_objectid argument from btrfs_make_block_group

btrfs_make_block_group is always called with chunk_objectid set to
BTRFS_FIRST_CHUNK_TREE_OBJECTID. There's no reason why this behavior will
change anytime soon, so let's remove the argument and decrease the cognitive
load when reading the code path. No functional change

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