Home
last modified time | relevance | path

Searched refs:rkobj (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/fs/btrfs/
Dsysfs.c1564 struct raid_kobject *rkobj; in btrfs_sysfs_add_block_group_type() local
1578 rkobj = kzalloc(sizeof(*rkobj), GFP_NOFS); in btrfs_sysfs_add_block_group_type()
1579 if (!rkobj) { in btrfs_sysfs_add_block_group_type()
1586 rkobj->flags = cache->flags; in btrfs_sysfs_add_block_group_type()
1587 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in btrfs_sysfs_add_block_group_type()
1601 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()
1604 space_info->block_group_kobjs[index] = &rkobj->kobj; in btrfs_sysfs_add_block_group_type()
1608 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()
1609 btrfs_bg_type_to_raid_name(rkobj->flags)); in btrfs_sysfs_add_block_group_type()
1615 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type()