mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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>
This commit is contained in:
parent
0ceaf28213
commit
5721b8ad26
1 changed files with 3 additions and 4 deletions
|
@ -653,9 +653,9 @@ static int reada_pick_zone(struct btrfs_device *dev)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int reada_start_machine_dev(struct btrfs_fs_info *fs_info,
|
static int reada_start_machine_dev(struct btrfs_device *dev)
|
||||||
struct btrfs_device *dev)
|
|
||||||
{
|
{
|
||||||
|
struct btrfs_fs_info *fs_info = dev->fs_info;
|
||||||
struct reada_extent *re = NULL;
|
struct reada_extent *re = NULL;
|
||||||
int mirror_num = 0;
|
int mirror_num = 0;
|
||||||
struct extent_buffer *eb = NULL;
|
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) {
|
list_for_each_entry(device, &fs_devices->devices, dev_list) {
|
||||||
if (atomic_read(&device->reada_in_flight) <
|
if (atomic_read(&device->reada_in_flight) <
|
||||||
MAX_IN_FLIGHT)
|
MAX_IN_FLIGHT)
|
||||||
enqueued += reada_start_machine_dev(fs_info,
|
enqueued += reada_start_machine_dev(device);
|
||||||
device);
|
|
||||||
}
|
}
|
||||||
mutex_unlock(&fs_devices->device_list_mutex);
|
mutex_unlock(&fs_devices->device_list_mutex);
|
||||||
total += enqueued;
|
total += enqueued;
|
||||||
|
|
Loading…
Reference in a new issue