diff options
author | David Sterba <dsterba@suse.com> | 2017-02-10 13:49:01 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 06:03:54 -0500 |
commit | e4a4dce72ebda97a930b1269add5575c7841befc (patch) | |
tree | f73749a52fccbf965025914f70f2ead2b6521104 | |
parent | 72b468c8daeba50ac85e9d7b92eda18a55c56d18 (diff) |
btrfs: remove unused parameter from init_first_rw_device
The 'device' used to be added in that function, but now it's done by the
caller.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/volumes.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index d234625e4e02..1fac98728814 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -134,8 +134,7 @@ const int btrfs_raid_mindev_error[BTRFS_NR_RAID_TYPES] = { | |||
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int init_first_rw_device(struct btrfs_trans_handle *trans, | 136 | static int init_first_rw_device(struct btrfs_trans_handle *trans, |
137 | struct btrfs_fs_info *fs_info, | 137 | struct btrfs_fs_info *fs_info); |
138 | struct btrfs_device *device); | ||
139 | static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info); | 138 | static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info); |
140 | static void __btrfs_reset_dev_stats(struct btrfs_device *dev); | 139 | static void __btrfs_reset_dev_stats(struct btrfs_device *dev); |
141 | static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); | 140 | static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); |
@@ -2440,7 +2439,7 @@ int btrfs_init_new_device(struct btrfs_fs_info *fs_info, char *device_path) | |||
2440 | 2439 | ||
2441 | if (seeding_dev) { | 2440 | if (seeding_dev) { |
2442 | mutex_lock(&fs_info->chunk_mutex); | 2441 | mutex_lock(&fs_info->chunk_mutex); |
2443 | ret = init_first_rw_device(trans, fs_info, device); | 2442 | ret = init_first_rw_device(trans, fs_info); |
2444 | mutex_unlock(&fs_info->chunk_mutex); | 2443 | mutex_unlock(&fs_info->chunk_mutex); |
2445 | if (ret) { | 2444 | if (ret) { |
2446 | btrfs_abort_transaction(trans, ret); | 2445 | btrfs_abort_transaction(trans, ret); |
@@ -5012,8 +5011,7 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, | |||
5012 | } | 5011 | } |
5013 | 5012 | ||
5014 | static noinline int init_first_rw_device(struct btrfs_trans_handle *trans, | 5013 | static noinline int init_first_rw_device(struct btrfs_trans_handle *trans, |
5015 | struct btrfs_fs_info *fs_info, | 5014 | struct btrfs_fs_info *fs_info) |
5016 | struct btrfs_device *device) | ||
5017 | { | 5015 | { |
5018 | struct btrfs_root *extent_root = fs_info->extent_root; | 5016 | struct btrfs_root *extent_root = fs_info->extent_root; |
5019 | u64 chunk_offset; | 5017 | u64 chunk_offset; |