|
@@ -682,11 +682,10 @@ int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int btrfs_kobj_add_device(struct btrfs_fs_info *fs_info,
|
|
|
- struct btrfs_device *one_device)
|
|
|
+int btrfs_kobj_add_device(struct btrfs_fs_devices *fs_devices,
|
|
|
+ struct btrfs_device *one_device)
|
|
|
{
|
|
|
int error = 0;
|
|
|
- struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
|
|
|
struct btrfs_device *dev;
|
|
|
|
|
|
error = btrfs_sysfs_add_device(fs_devices);
|
|
@@ -752,7 +751,7 @@ int btrfs_sysfs_add_one(struct btrfs_fs_info *fs_info)
|
|
|
if (error)
|
|
|
return error;
|
|
|
|
|
|
- error = btrfs_kobj_add_device(fs_info, NULL);
|
|
|
+ error = btrfs_kobj_add_device(fs_devs, NULL);
|
|
|
if (error) {
|
|
|
btrfs_sysfs_remove_fsid(fs_devs);
|
|
|
return error;
|