diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-07-27 14:22:11 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-21 17:47:42 +0200 |
commit | 0174484d619460a65e88f594c36983cd2b7f4128 (patch) | |
tree | f78979163a43296459a6168e9b41cbd413932799 /fs/btrfs/ctree.h | |
parent | 0dde10bed2c44a4024eb446cc72fe4e0cb97ec06 (diff) | |
download | lwn-0174484d619460a65e88f594c36983cd2b7f4128.tar.gz lwn-0174484d619460a65e88f594c36983cd2b7f4128.zip |
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/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 02edcddbcc9c..ca087ad5ac48 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -2676,8 +2676,7 @@ int btrfs_read_block_groups(struct btrfs_fs_info *info); int btrfs_can_relocate(struct btrfs_fs_info *fs_info, u64 bytenr); int btrfs_make_block_group(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytes_used, - u64 type, u64 chunk_objectid, u64 chunk_offset, - u64 size); + u64 type, u64 chunk_offset, u64 size); struct btrfs_trans_handle *btrfs_start_trans_remove_block_group( struct btrfs_fs_info *fs_info, const u64 chunk_offset); |