Lines Matching refs:devices_kobj
1410 if (fs_devs->devices_kobj) { in __btrfs_sysfs_remove_fsid()
1411 kobject_del(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
1412 kobject_put(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
1413 fs_devs->devices_kobj = NULL; in __btrfs_sysfs_remove_fsid()
1683 struct kobject *devices_kobj; in btrfs_sysfs_remove_device() local
1689 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device()
1690 ASSERT(devices_kobj); in btrfs_sysfs_remove_device()
1693 sysfs_remove_link(devices_kobj, bdev_kobj(device->bdev)->name); in btrfs_sysfs_remove_device()
1860 struct kobject *devices_kobj; in btrfs_sysfs_add_device() local
1867 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_add_device()
1869 ASSERT(devices_kobj); in btrfs_sysfs_add_device()
1877 ret = sysfs_create_link(devices_kobj, disk_kobj, disk_kobj->name); in btrfs_sysfs_add_device()
1988 fs_devs->devices_kobj = kobject_create_and_add("devices", in btrfs_sysfs_add_fsid()
1990 if (!fs_devs->devices_kobj) { in btrfs_sysfs_add_fsid()