summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/reada.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-03-02 19:43:30 +0100
committerDavid Sterba <dsterba@suse.com>2017-04-18 14:07:25 +0200
commit5721b8ad260f6ed15e3c82447981dd7a2f4bdf72 (patch)
tree867dd986764182231880fc2374f390587530b22e /fs/btrfs/reada.c
parent0ceaf282137f261abf634f96b15c535baa6a9c93 (diff)
downloadlinux-5721b8ad260f6ed15e3c82447981dd7a2f4bdf72.tar.bz2
btrfs: remove redundant parameter from reada_start_machine_dev
We can read fs_info from dev. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reada.c')
-rw-r--r--fs/btrfs/reada.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index 2deba18886db..5c1e6bbed132 100644
--- a/fs/btrfs/reada.c
+++ b/fs/btrfs/reada.c
@@ -653,9 +653,9 @@ static int reada_pick_zone(struct btrfs_device *dev)
return 1;
}
-static int reada_start_machine_dev(struct btrfs_fs_info *fs_info,
- struct btrfs_device *dev)
+static int reada_start_machine_dev(struct btrfs_device *dev)
{
+ struct btrfs_fs_info *fs_info = dev->fs_info;
struct reada_extent *re = NULL;
int mirror_num = 0;
struct extent_buffer *eb = NULL;
@@ -768,8 +768,7 @@ static void __reada_start_machine(struct btrfs_fs_info *fs_info)
list_for_each_entry(device, &fs_devices->devices, dev_list) {
if (atomic_read(&device->reada_in_flight) <
MAX_IN_FLIGHT)
- enqueued += reada_start_machine_dev(fs_info,
- device);
+ enqueued += reada_start_machine_dev(device);
}
mutex_unlock(&fs_devices->device_list_mutex);
total += enqueued;