diff options
author | Anand Jain <anand.jain@oracle.com> | 2015-03-09 23:38:34 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-27 12:27:21 +0200 |
commit | 6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70 (patch) | |
tree | 5294abae1abd966bc18b58ce4dbc969f1b710c76 /fs/btrfs/dev-replace.c | |
parent | Btrfs: sysfs btrfs_kobj_add_device() pass fs_devices instead of fs_info (diff) | |
download | linux-6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70.tar.xz linux-6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70.zip |
Btrfs: sysfs btrfs_kobj_rm_device() pass fs_devices instead of fs_info
since btrfs_kobj_rm_device() does nothing with fs_info
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 72c03adb6562..f982ef303f1c 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -583,7 +583,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, mutex_unlock(&uuid_mutex); /* replace the sysfs entry */ - btrfs_kobj_rm_device(fs_info, src_device); + btrfs_kobj_rm_device(fs_info->fs_devices, src_device); btrfs_kobj_add_device(fs_info->fs_devices, tgt_device); btrfs_rm_dev_replace_free_srcdev(fs_info, src_device); |