Searched refs:rkobj (Results 1 – 1 of 1) sorted by relevance
1508 struct raid_kobject *rkobj; in btrfs_sysfs_add_block_group_type() local1522 rkobj = kzalloc(sizeof(*rkobj), GFP_NOFS); in btrfs_sysfs_add_block_group_type()1523 if (!rkobj) { in btrfs_sysfs_add_block_group_type()1530 rkobj->flags = cache->flags; in btrfs_sysfs_add_block_group_type()1531 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in btrfs_sysfs_add_block_group_type()1545 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()1548 space_info->block_group_kobjs[index] = &rkobj->kobj; in btrfs_sysfs_add_block_group_type()1552 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()1553 btrfs_bg_type_to_raid_name(rkobj->flags)); in btrfs_sysfs_add_block_group_type()1559 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()