Searched refs:rkobj (Results 1 – 1 of 1) sorted by relevance
1329 struct raid_kobject *rkobj; in btrfs_sysfs_add_block_group_type() local1343 rkobj = kzalloc(sizeof(*rkobj), GFP_NOFS); in btrfs_sysfs_add_block_group_type()1344 if (!rkobj) { in btrfs_sysfs_add_block_group_type()1351 rkobj->flags = cache->flags; in btrfs_sysfs_add_block_group_type()1352 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in btrfs_sysfs_add_block_group_type()1366 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()1369 space_info->block_group_kobjs[index] = &rkobj->kobj; in btrfs_sysfs_add_block_group_type()1373 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()1374 btrfs_bg_type_to_raid_name(rkobj->flags)); in btrfs_sysfs_add_block_group_type()1380 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()