• Home
  • Raw
  • Download

Lines Matching refs:space_info

618 BTRFS_ATTR(space_info, field, btrfs_space_info_show_##field)
638 BTRFS_ATTR(space_info, total_bytes_pinned,
642 BTRFS_ATTR_PTR(space_info, flags),
643 BTRFS_ATTR_PTR(space_info, total_bytes),
644 BTRFS_ATTR_PTR(space_info, bytes_used),
645 BTRFS_ATTR_PTR(space_info, bytes_pinned),
646 BTRFS_ATTR_PTR(space_info, bytes_reserved),
647 BTRFS_ATTR_PTR(space_info, bytes_may_use),
648 BTRFS_ATTR_PTR(space_info, bytes_readonly),
649 BTRFS_ATTR_PTR(space_info, disk_used),
650 BTRFS_ATTR_PTR(space_info, disk_total),
651 BTRFS_ATTR_PTR(space_info, total_bytes_pinned),
654 ATTRIBUTE_GROUPS(space_info);
1115 struct btrfs_space_info *space_info = cache->space_info; in btrfs_sysfs_add_block_group_type() local
1150 spin_lock(&space_info->lock); in btrfs_sysfs_add_block_group_type()
1151 if (space_info->block_group_kobjs[index]) { in btrfs_sysfs_add_block_group_type()
1152 spin_unlock(&space_info->lock); in btrfs_sysfs_add_block_group_type()
1156 space_info->block_group_kobjs[index] = &rkobj->kobj; in btrfs_sysfs_add_block_group_type()
1158 spin_unlock(&space_info->lock); in btrfs_sysfs_add_block_group_type()
1160 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()
1164 spin_lock(&space_info->lock); in btrfs_sysfs_add_block_group_type()
1165 space_info->block_group_kobjs[index] = NULL; in btrfs_sysfs_add_block_group_type()
1166 spin_unlock(&space_info->lock); in btrfs_sysfs_add_block_group_type()
1178 void btrfs_sysfs_remove_space_info(struct btrfs_space_info *space_info) in btrfs_sysfs_remove_space_info() argument
1185 kobj = space_info->block_group_kobjs[i]; in btrfs_sysfs_remove_space_info()
1186 space_info->block_group_kobjs[i] = NULL; in btrfs_sysfs_remove_space_info()
1192 kobject_del(&space_info->kobj); in btrfs_sysfs_remove_space_info()
1193 kobject_put(&space_info->kobj); in btrfs_sysfs_remove_space_info()
1218 struct btrfs_space_info *space_info) in btrfs_sysfs_add_space_info_type() argument
1222 ret = kobject_init_and_add(&space_info->kobj, &space_info_ktype, in btrfs_sysfs_add_space_info_type()
1224 alloc_name(space_info->flags)); in btrfs_sysfs_add_space_info_type()
1226 kobject_put(&space_info->kobj); in btrfs_sysfs_add_space_info_type()