Home
last modified time | relevance | path

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

/reactos/drivers/filesystems/btrfs/
H A Dscrub.c1395 cis = (CHUNK_ITEM_STRIPE*)&c->chunk_item[1]; in scrub_extent()
1406 …context.stripes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->s… in scrub_extent()
1439 …context.stripes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->s… in scrub_extent()
1709 …uint16_t stripe, parity = (bit_start + num + c->chunk_item->num_stripes - 1) % c->chunk_item->num_… in scrub_raid5_stripe()
1898 …uint16_t stripe, parity1 = (bit_start + num + c->chunk_item->num_stripes - 2) % c->chunk_item->num… in scrub_raid6_stripe()
2290 k = c->chunk_item->num_stripes - 3; in scrub_raid6_stripe()
2439 …full_stripe_len = (c->chunk_item->num_stripes - num_parity_stripes) * c->chunk_item->stripe_length; in scrub_chunk_raid56_stripe_run()
2483 if (c->chunk_item->type & BLOCK_FLAG_DATA) { in scrub_chunk_raid56_stripe_run()
2825 if (c->chunk_item->type & BLOCK_FLAG_RAID6) in scrub_chunk_raid56_stripe_run()
2828 if (c->chunk_item->type & BLOCK_FLAG_DATA) { in scrub_chunk_raid56_stripe_run()
[all …]
H A Dwrite.c537 if (!c->chunk_item) { in alloc_chunk()
581 c->chunk_item->type = flags; in alloc_chunk()
582 c->chunk_item->opt_io_alignment = (uint32_t)c->chunk_item->stripe_length; in alloc_chunk()
583 c->chunk_item->opt_io_width = (uint32_t)c->chunk_item->stripe_length; in alloc_chunk()
675 if (c->chunk_item) in alloc_chunk()
854 …get_raid0_offset(address - c->offset, c->chunk_item->stripe_length, c->chunk_item->num_stripes / c…
912 for (i = 0; i < c->chunk_item->num_stripes; i += c->chunk_item->sub_stripes) {
2215 if (c->chunk_item->type & BLOCK_FLAG_RAID5 || c->chunk_item->type & BLOCK_FLAG_RAID6) { in write_data_complete()
2272 if (c->chunk_item->type & BLOCK_FLAG_RAID5 || c->chunk_item->type & BLOCK_FLAG_RAID6) in write_data_complete()
3108 if (c->chunk_item->type == flags && (c->chunk_item->size - c->used) >= extlen) { in insert_prealloc_extent()
[all …]
H A Dflushthread.c261 … stripeend = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length; in clean_space_cache_chunk()
4246 bgi->flags = c->chunk_item->type; in create_chunk()
4258 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in create_chunk()
5543 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in drop_chunk()
5760 if (c->chunk_item->type & BLOCK_FLAG_RAID5 || c->chunk_item->type & BLOCK_FLAG_RAID6) { in drop_chunk()
5768 … if (c2->chunk_item->type & BLOCK_FLAG_RAID5 || c2->chunk_item->type & BLOCK_FLAG_RAID6) { in drop_chunk()
5782 if (c->chunk_item->type & BLOCK_FLAG_RAID1C3 || c->chunk_item->type & BLOCK_FLAG_RAID1C4) { in drop_chunk()
5790 … if (c2->chunk_item->type & BLOCK_FLAG_RAID1C3 || c2->chunk_item->type & BLOCK_FLAG_RAID1C4) { in drop_chunk()
5804 ExFreePool(c->chunk_item); in drop_chunk()
5902 …logstripe = (c->chunk_item->num_stripes + c->chunk_item->num_stripes - 1 - parity + stripe) % c->c… in partial_stripe_read()
[all …]
H A Dbalance.c595 if (pc->chunk_item->type & BLOCK_FLAG_SYSTEM)
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()
2262 if (c->chunk_item->type & BLOCK_FLAG_RAID0) in should_balance_chunk()
2263 factor = c->chunk_item->num_stripes; in should_balance_chunk()
2265 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in should_balance_chunk()
2273 physsize = c->chunk_item->size / factor; 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()
3026 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in regenerate_space_list()
3129 if (c->chunk_item->type & BLOCK_FLAG_DATA) in _Function_class_()
[all …]
H A Dfree-space.c366 CHUNK_ITEM* ci = c->chunk_item; in get_superblock_size()
433 …ff_start = ((superblock_addrs[i] - cis[j].offset) / c->chunk_item->stripe_length) * c->chunk_item-… in get_superblock_size()
545 if (c->chunk_item->size < 0x6400000) { // 100 MB in load_stored_free_space_cache()
744 searchkey.offset = c->chunk_item->size; in load_stored_free_space_tree()
765 if (tp.item->key.obj_id >= c->offset + c->chunk_item->size) in load_stored_free_space_tree()
959 if (lastaddr < c->offset + c->chunk_item->size) { in load_free_space_cache()
968 s->size = c->offset + c->chunk_item->size - lastaddr; in load_free_space_cache()
1013 if (c->chunk_item->type == flags && (c->chunk_item->size - c->used) >= length) { in insert_cache_extent()
1033 if (c->chunk_item->type == flags && (c->chunk_item->size - c->used) >= length) { in insert_cache_extent()
1984 searchkey.offset = c->chunk_item->size; in update_chunk_cache_tree()
[all …]
H A Dbtrfs.c2161 ExFreePool(c->chunk_item);
3667 if (!c->chunk_item) {
3675 if (c->chunk_item->type & BLOCK_FLAG_DATA && c->chunk_item->type > Vcb->data_flags)
3678 … if (c->chunk_item->type & BLOCK_FLAG_METADATA && c->chunk_item->type > Vcb->metadata_flags)
3681 … if (c->chunk_item->type & BLOCK_FLAG_SYSTEM && c->chunk_item->type > Vcb->system_flags)
3685 … if (c->chunk_item->sub_stripes == 0 || c->chunk_item->sub_stripes > c->chunk_item->num_stripes) {
3687 ExFreePool(c->chunk_item);
3701 ExFreePool(c->chunk_item);
3722 ExFreePool(c->chunk_item);
3788 CHUNK_ITEM* ci = c->chunk_item;
[all …]
H A Dfsctl.c1555 if (bue->type == c->chunk_item->type) { in get_usage()
1588 bue->type = c->chunk_item->type; in get_usage()
1593 if (c->chunk_item->type & BLOCK_FLAG_RAID0) in get_usage()
1594 factor = c->chunk_item->num_stripes; in get_usage()
1596 factor = c->chunk_item->num_stripes / c->chunk_item->sub_stripes; in get_usage()
1597 else if (c->chunk_item->type & BLOCK_FLAG_RAID5) in get_usage()
1598 factor = c->chunk_item->num_stripes - 1; in get_usage()
1599 else if (c->chunk_item->type & BLOCK_FLAG_RAID6) in get_usage()
1600 factor = c->chunk_item->num_stripes - 2; in get_usage()
1608 if (c2->chunk_item->type == c->chunk_item->type) { in get_usage()
[all …]
H A Dcompress.c1027 … if (c2->chunk_item->type == fcb->Vcb->data_flags && (c2->chunk_item->size - c2->used) >= buflen) { in write_compressed()
H A Dread.c1503 ci = c->chunk_item;
1519 CHUNK_ITEM* chunk_item = sc->data; variable
1521 if ((addr - sc->key.offset) < chunk_item->size && chunk_item->num_stripes > 0) {
1522 ci = chunk_item;
1524 cis = (CHUNK_ITEM_STRIPE*)&chunk_item[1];
H A Dbtrfs_drv.h562 CHUNK_ITEM* chunk_item; member
/reactos/sdk/lib/fslib/btrfslib/
H A Dbtrfslib.c149 CHUNK_ITEM* chunk_item; member
332 free(c->chunk_item);
433 c->chunk_item->size = size;
434 c->chunk_item->root_id = BTRFS_ROOT_EXTENT;
436 c->chunk_item->type = flags;
439 c->chunk_item->sector_size = sector_size;
440 c->chunk_item->num_stripes = stripes;
441 c->chunk_item->sub_stripes = 0;
443 cis = (CHUNK_ITEM_STRIPE*)&c->chunk_item[1];
485 … addr = addr - ((addr - c->offset) % c->chunk_item->stripe_length) + c->chunk_item->stripe_length;
[all …]