summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-07-20 19:37:50 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:57 +0200
commitd6507cf1e2dfa4f6888cd90e4c9a307f7ac9b383 (patch)
treece874e0a2d81c573ee226c543c5e65fd05841e65 /fs/btrfs/dev-replace.c
parent5495f195fc5b246d8b0b8a2e0fbbc9c94b3ebf24 (diff)
downloadlinux-d6507cf1e2dfa4f6888cd90e4c9a307f7ac9b383.tar.gz
linux-d6507cf1e2dfa4f6888cd90e4c9a307f7ac9b383.tar.bz2
linux-d6507cf1e2dfa4f6888cd90e4c9a307f7ac9b383.zip
btrfs: Remove fs_info from btrfs_assign_next_active_device
It can be referenced from the passed 'device' argument which is always a well-formed device. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r--fs/btrfs/dev-replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index df375e1a0c9f..dd17a4d7bea2 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -658,7 +658,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
tgt_device->commit_total_bytes = src_device->commit_total_bytes;
tgt_device->commit_bytes_used = src_device->bytes_used;
- btrfs_assign_next_active_device(fs_info, src_device, tgt_device);
+ btrfs_assign_next_active_device(src_device, tgt_device);
list_add(&tgt_device->dev_alloc_list, &fs_info->fs_devices->alloc_list);
fs_info->fs_devices->rw_devices++;