summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov2018-07-20 18:37:51 +0200
committerDavid Sterba2018-08-06 13:12:57 +0200
commit4f5ad7bd6315528ed50a11d53c66854a5d16425b (patch)
tree286a20070d43f4c1a698ad7b0c4ebde76a2d226c /fs/btrfs/volumes.c
parentbtrfs: Remove fs_info from btrfs_assign_next_active_device (diff)
downloadkernel-qcow2-linux-4f5ad7bd6315528ed50a11d53c66854a5d16425b.tar.gz
kernel-qcow2-linux-4f5ad7bd6315528ed50a11d53c66854a5d16425b.tar.xz
kernel-qcow2-linux-4f5ad7bd6315528ed50a11d53c66854a5d16425b.zip
btrfs: Remove fs_info from btrfs_destroy_dev_replace_tgtdev
This function is always passed a well-formed tgtdevice so the fs_info can be referenced from there. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 9cd15964ab6f..45d7c37050ce 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2063,10 +2063,9 @@ void btrfs_rm_dev_replace_free_srcdev(struct btrfs_fs_info *fs_info,
}
}
-void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info,
- struct btrfs_device *tgtdev)
+void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev)
{
- struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
+ struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices;
WARN_ON(!tgtdev);
mutex_lock(&fs_devices->device_list_mutex);