OSDN Git Service

Btrfs: sysfs btrfs_kobj_add_device() pass fs_devices instead of fs_info
[uclinux-h8/linux.git] / fs / btrfs / volumes.c
index 5719470..d68d394 100644 (file)
@@ -2215,7 +2215,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
                                    tmp + 1);
 
        /* add sysfs device entry */
-       btrfs_kobj_add_device(root->fs_info, device);
+       btrfs_kobj_add_device(root->fs_info->fs_devices, device);
 
        /*
         * we've got more storage, clear any full flags on the space