Lines Matching refs:devices_kobj
1398 if (fs_devs->devices_kobj) { in __btrfs_sysfs_remove_fsid()
1399 kobject_del(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
1400 kobject_put(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
1401 fs_devs->devices_kobj = NULL; in __btrfs_sysfs_remove_fsid()
1671 struct kobject *devices_kobj; in btrfs_sysfs_remove_device() local
1677 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device()
1678 ASSERT(devices_kobj); in btrfs_sysfs_remove_device()
1681 sysfs_remove_link(devices_kobj, bdev_kobj(device->bdev)->name); in btrfs_sysfs_remove_device()
1844 struct kobject *devices_kobj; in btrfs_sysfs_add_device() local
1851 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_add_device()
1853 ASSERT(devices_kobj); in btrfs_sysfs_add_device()
1861 ret = sysfs_create_link(devices_kobj, disk_kobj, disk_kobj->name); in btrfs_sysfs_add_device()
1972 fs_devs->devices_kobj = kobject_create_and_add("devices", in btrfs_sysfs_add_fsid()
1974 if (!fs_devs->devices_kobj) { in btrfs_sysfs_add_fsid()