Lines Matching refs:chunk_item

589 …c && mr->address >= c->offset && mr->address < c->offset + c->chunk_item->size ? c : NULL, &pc, NU…
595 if (pc->chunk_item->type & BLOCK_FLAG_SYSTEM)
747 …if (newchunk->chunk_item->type == flags && find_metadata_address_in_chunk(Vcb, newchunk, &mr->new_…
763 … if (!c2->readonly && !c2->reloc && c2 != newchunk && c2->chunk_item->type == flags) {
766 if ((c2->chunk_item->size - c2->used) >= Vcb->superblock.node_size) {
1128 if (tp.item->key.obj_id >= c->offset + c->chunk_item->size) in balance_metadata_chunk()
1702 if (tp.item->key.obj_id >= c->offset + c->chunk_item->size) in balance_data_chunk()
1780 … if (!c2->readonly && !c2->reloc && c2 != newchunk && c2->chunk_item->type == Vcb->data_flags) { in balance_data_chunk()
1783 if ((c2->chunk_item->size - c2->used) >= dr->size) { in balance_data_chunk()
2090 …if (ed2->size > 0 && ed2->address >= c->offset && ed2->address < c->offset + c->chunk_item->size) { in balance_data_chunk()
2141 …if (ed2->size > 0 && ed2->address >= c->offset && ed2->address < c->offset + c->chunk_item->size) { in balance_data_chunk()
2205 if (c->chunk_item->type & BLOCK_FLAG_RAID0) in get_chunk_dup_type()
2207 else if (c->chunk_item->type & BLOCK_FLAG_RAID1) in get_chunk_dup_type()
2209 else if (c->chunk_item->type & BLOCK_FLAG_DUPLICATE) in get_chunk_dup_type()
2211 else if (c->chunk_item->type & BLOCK_FLAG_RAID10) in get_chunk_dup_type()
2213 else if (c->chunk_item->type & BLOCK_FLAG_RAID5) in get_chunk_dup_type()
2215 else if (c->chunk_item->type & BLOCK_FLAG_RAID6) in get_chunk_dup_type()
2217 else if (c->chunk_item->type & BLOCK_FLAG_RAID1C3) in get_chunk_dup_type()
2219 else if (c->chunk_item->type & BLOCK_FLAG_RAID1C4) in get_chunk_dup_type()
2242 CHUNK_ITEM_STRIPE* cis = (CHUNK_ITEM_STRIPE*)&c->chunk_item[1]; in should_balance_chunk()
2245 for (i = 0; i < c->chunk_item->num_stripes; i++) { in should_balance_chunk()
2259 CHUNK_ITEM_STRIPE* cis = (CHUNK_ITEM_STRIPE*)&c->chunk_item[1]; in should_balance_chunk()
2262 if (c->chunk_item->type & BLOCK_FLAG_RAID0) in should_balance_chunk()
2263 factor = c->chunk_item->num_stripes; in should_balance_chunk()
2264 else if (c->chunk_item->type & BLOCK_FLAG_RAID10) in should_balance_chunk()
2265 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in should_balance_chunk()
2266 else if (c->chunk_item->type & BLOCK_FLAG_RAID5) in should_balance_chunk()
2267 factor = c->chunk_item->num_stripes - 1; in should_balance_chunk()
2268 else if (c->chunk_item->type & BLOCK_FLAG_RAID6) in should_balance_chunk()
2269 factor = c->chunk_item->num_stripes - 2; in should_balance_chunk()
2273 physsize = c->chunk_item->size / factor; in should_balance_chunk()
2275 for (i = 0; i < c->chunk_item->num_stripes; i++) { in should_balance_chunk()
2288 if (c->offset + c->chunk_item->size <= opts->vrange_start || c->offset > opts->vrange_end) in should_balance_chunk()
2293 …if (c->chunk_item->num_stripes < opts->stripes_start || c->chunk_item->num_stripes < opts->stripes… in should_balance_chunk()
2298 uint64_t usage = c->used * 100 / c->chunk_item->size; in should_balance_chunk()
2923 …if (c->chunk_item->type & BLOCK_FLAG_DATA && !c->readonly && c->balance_num != Vcb->balance.balanc… in try_consolidation()
3014 CHUNK_ITEM_STRIPE* cis = (CHUNK_ITEM_STRIPE*)&c->chunk_item[1]; in regenerate_space_list()
3016 for (n = 0; n < c->chunk_item->num_stripes; n++) { in regenerate_space_list()
3023 if (c->chunk_item->type & BLOCK_FLAG_RAID0) in regenerate_space_list()
3024 factor = c->chunk_item->num_stripes; in regenerate_space_list()
3025 else if (c->chunk_item->type & BLOCK_FLAG_RAID10) in regenerate_space_list()
3026 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in regenerate_space_list()
3027 else if (c->chunk_item->type & BLOCK_FLAG_RAID5) in regenerate_space_list()
3028 factor = c->chunk_item->num_stripes - 1; in regenerate_space_list()
3029 else if (c->chunk_item->type & BLOCK_FLAG_RAID6) in regenerate_space_list()
3030 factor = c->chunk_item->num_stripes - 2; in regenerate_space_list()
3034 stripe_size = c->chunk_item->size / factor; in regenerate_space_list()
3129 if (c->chunk_item->type & BLOCK_FLAG_DATA) in _Function_class_()
3131 else if (c->chunk_item->type & BLOCK_FLAG_METADATA) in _Function_class_()
3133 else if (c->chunk_item->type & BLOCK_FLAG_SYSTEM) in _Function_class_()
3136 ERR("unexpected chunk type %I64x\n", c->chunk_item->type); in _Function_class_()
3292 if (c->chunk_item->type & BLOCK_FLAG_DATA) { in _Function_class_()
3321 if (c->chunk_item->type & BLOCK_FLAG_DATA && in _Function_class_()
3322 …pts[BALANCE_OPTS_METADATA].flags & BTRFS_BALANCE_OPTS_ENABLED) || !(c->chunk_item->type & BLOCK_FL… in _Function_class_()
3340 if (c->chunk_item->type & BLOCK_FLAG_METADATA || c->chunk_item->type & BLOCK_FLAG_SYSTEM) { in _Function_class_()