Searched refs:rkobj (Results 1 – 1 of 1) sorted by relevance
1715 struct raid_kobject *rkobj; in btrfs_sysfs_add_block_group_type() local1729 rkobj = kzalloc(sizeof(*rkobj), GFP_NOFS); in btrfs_sysfs_add_block_group_type()1730 if (!rkobj) { in btrfs_sysfs_add_block_group_type()1737 rkobj->flags = cache->flags; in btrfs_sysfs_add_block_group_type()1738 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in btrfs_sysfs_add_block_group_type()1752 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()1755 space_info->block_group_kobjs[index] = &rkobj->kobj; in btrfs_sysfs_add_block_group_type()1759 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()1760 btrfs_bg_type_to_raid_name(rkobj->flags)); in btrfs_sysfs_add_block_group_type()1766 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()