Lines Matching refs:bgi
2094 struct btrfs_block_group_item *bgi, in read_one_block_group() argument
2109 cache->used = btrfs_stack_block_group_used(bgi); in read_one_block_group()
2110 cache->flags = btrfs_stack_block_group_flags(bgi); in read_one_block_group()
2111 cache->global_root_id = btrfs_stack_block_group_chunk_objectid(bgi); in read_one_block_group()
2301 struct btrfs_block_group_item bgi; in btrfs_read_block_groups() local
2314 read_extent_buffer(leaf, &bgi, btrfs_item_ptr_offset(leaf, slot), in btrfs_read_block_groups()
2315 sizeof(bgi)); in btrfs_read_block_groups()
2319 ret = read_one_block_group(info, &bgi, &key, need_clear); in btrfs_read_block_groups()
2385 struct btrfs_block_group_item bgi; in insert_block_group_item() local
2390 btrfs_set_stack_block_group_used(&bgi, block_group->used); in insert_block_group_item()
2391 btrfs_set_stack_block_group_chunk_objectid(&bgi, in insert_block_group_item()
2393 btrfs_set_stack_block_group_flags(&bgi, block_group->flags); in insert_block_group_item()
2399 return btrfs_insert_item(trans, root, &key, &bgi, sizeof(bgi)); in insert_block_group_item()
2822 struct btrfs_block_group_item bgi; in update_block_group_item() local
2838 btrfs_set_stack_block_group_used(&bgi, cache->used); in update_block_group_item()
2839 btrfs_set_stack_block_group_chunk_objectid(&bgi, in update_block_group_item()
2841 btrfs_set_stack_block_group_flags(&bgi, cache->flags); in update_block_group_item()
2842 write_extent_buffer(leaf, &bgi, bi, sizeof(bgi)); in update_block_group_item()