Lines Matching refs:device_dir_kobj
599 if (fs_devs->device_dir_kobj) { in __btrfs_sysfs_remove_fsid()
600 kobject_del(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()
601 kobject_put(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()
602 fs_devs->device_dir_kobj = NULL; in __btrfs_sysfs_remove_fsid()
725 if (!fs_devices->device_dir_kobj) in btrfs_sysfs_rm_device_link()
732 sysfs_remove_link(fs_devices->device_dir_kobj, in btrfs_sysfs_rm_device_link()
746 sysfs_remove_link(fs_devices->device_dir_kobj, in btrfs_sysfs_rm_device_link()
755 if (!fs_devs->device_dir_kobj) in btrfs_sysfs_add_device()
756 fs_devs->device_dir_kobj = kobject_create_and_add("devices", in btrfs_sysfs_add_device()
759 if (!fs_devs->device_dir_kobj) in btrfs_sysfs_add_device()
786 error = sysfs_create_link(fs_devices->device_dir_kobj, in btrfs_sysfs_add_device_link()