summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-07-27 14:22:11 +0300
committerDavid Sterba <dsterba@suse.com>2017-08-21 17:47:42 +0200
commit0174484d619460a65e88f594c36983cd2b7f4128 (patch)
treef78979163a43296459a6168e9b41cbd413932799 /fs/btrfs/volumes.c
parent0dde10bed2c44a4024eb446cc72fe4e0cb97ec06 (diff)
downloadop-kernel-dev-0174484d619460a65e88f594c36983cd2b7f4128.zip
op-kernel-dev-0174484d619460a65e88f594c36983cd2b7f4128.tar.gz
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 3561397..1df1044 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -4826,9 +4826,7 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
goto error;
}
- ret = btrfs_make_block_group(trans, info, 0, type,
- BTRFS_FIRST_CHUNK_TREE_OBJECTID,
- start, num_bytes);
+ ret = btrfs_make_block_group(trans, info, 0, type, start, num_bytes);
if (ret)
goto error_del_extent;
OpenPOWER on IntegriCloud