Home
last modified time | relevance | path

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

/reactos/drivers/filesystems/btrfs/
H A Dread.c1664 … context.stripes[i].stripestart = startoff - (startoff % ci->stripe_length) + ci->stripe_length;
1671 … context.stripes[i].stripeend = endoff - (endoff % ci->stripe_length) + ci->stripe_length;
1721 pos += (uint32_t)ci->stripe_length;
1814 sstart = startoff - (startoff % ci->stripe_length) + ci->stripe_length;
1821 send = endoff - (endoff % ci->stripe_length) + ci->stripe_length;
1901 … ci->stripe_length - (stripes[stripe]->stripestart % ci->stripe_length));
1915 pos += (ULONG)ci->stripe_length;
2045 … readlen = min(length, (ULONG)(ci->stripe_length - (startoff % ci->stripe_length)));
2107 … context.stripes[stripe].stripeend = endoff - (endoff % ci->stripe_length) + ci->stripe_length;
2304 … readlen = (ULONG)min(length, ci->stripe_length - (startoff % ci->stripe_length));
[all …]
H A Dscrub.c1018 …c->chunk_item->stripe_length - (context->stripes[stripe * sub_stripes].start % c->chunk_item->stri… in scrub_extent_raid10()
1134 …c->chunk_item->stripe_length - (context->stripes[stripe * sub_stripes].start % c->chunk_item->stri… in scrub_extent_raid10()
1246 …c->chunk_item->stripe_length - (context->stripes[stripe * sub_stripes].start % c->chunk_item->stri… in scrub_extent_raid10()
1406 …ipes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt… in scrub_extent()
1413 …length = (uint32_t)(endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt… in scrub_extent()
1439 …ipes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt… in scrub_extent()
1717 …&context->stripes[parity].buf[num * c->chunk_item->stripe_length], (ULONG)c->chunk_item->stripe_le… in scrub_raid5_stripe()
1760 …&context->stripes[stripe].buf[num * c->chunk_item->stripe_length], (ULONG)c->chunk_item->stripe_le… in scrub_raid5_stripe()
1907 …context->stripes[parity1].buf[num * c->chunk_item->stripe_length], (ULONG)c->chunk_item->stripe_le… in scrub_raid6_stripe()
1956 …ontext->stripes[stripe].buf[num * c->chunk_item->stripe_length], (uint32_t)c->chunk_item->stripe_l… in scrub_raid6_stripe()
[all …]
H A Dwrite.c569 if (stripe_size % stripe_length > 0) in alloc_chunk()
580 c->chunk_item->stripe_length = stripe_length; in alloc_chunk()
785 …ipes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt…
792 … stripes[i].end = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length;
831 pos += c->chunk_item->stripe_length;
916 …ipes[i].start = startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt…
923 … stripes[i].end = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length;
1130 …writelen = (ULONG)min(length, c->chunk_item->stripe_length - (startoff % c->chunk_item->stripe_len… in prepare_raid5_write()
1190 …ripes[stripe].end = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_lengt… in prepare_raid5_write()
1565 startoff - (startoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length; in prepare_raid6_write()
[all …]
H A Dfree-space.c381 off_start -= off_start % ci->stripe_length; in get_superblock_size()
383 off_start += (j / sub_stripes) * ci->stripe_length; in get_superblock_size()
385 off_end = off_start + ci->stripe_length; in get_superblock_size()
400 off_start -= off_start % (ci->stripe_length * (ci->num_stripes - 1)); in get_superblock_size()
403 off_end = off_start + (ci->stripe_length * (ci->num_stripes - 1)); in get_superblock_size()
405 …add_superblock_stripe(&stripes, off_start / ci->stripe_length, (off_end - off_start) / ci->stripe_… in get_superblock_size()
421 off_end = off_start + (ci->stripe_length * (ci->num_stripes - 2)); in get_superblock_size()
423 …add_superblock_stripe(&stripes, off_start / ci->stripe_length, (off_end - off_start) / ci->stripe_… in get_superblock_size()
433 …superblock_addrs[i] - cis[j].offset) / c->chunk_item->stripe_length) * c->chunk_item->stripe_lengt… in get_superblock_size()
436 …add_superblock_stripe(&stripes, off_start / ci->stripe_length, (off_end - off_start) / ci->stripe_… in get_superblock_size()
[all …]
H A Dflushthread.c227 … stripeend = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length; in clean_space_cache_chunk()
261 … stripeend = endoff - (endoff % c->chunk_item->stripe_length) + c->chunk_item->stripe_length; in clean_space_cache_chunk()
5968 ULONG stripe_length = (ULONG)c->chunk_item->stripe_length; in flush_partial_stripe() local
6056 data += stripe_length; in flush_partial_stripe()
6066 do_xor(ps->data, ps->data + (i * stripe_length), stripe_length); in flush_partial_stripe()
6092 RtlCopyMemory(scratch, ps->data + (i * stripe_length), stripe_length); in flush_partial_stripe()
6093 … RtlCopyMemory(scratch + stripe_length, ps->data + (i * stripe_length), stripe_length); in flush_partial_stripe()
6095 do_xor(scratch, ps->data + (i * stripe_length), stripe_length); in flush_partial_stripe()
6097 galois_double(scratch + stripe_length, stripe_length); in flush_partial_stripe()
6098 do_xor(scratch + stripe_length, ps->data + (i * stripe_length), stripe_length); in flush_partial_stripe()
[all …]
H A Dbtrfs_drv.h997 static __inline void get_raid0_offset(_In_ uint64_t off, _In_ uint64_t stripe_length, _In_ uint16_t… in get_raid0_offset() argument
1000 startoff = off % (num_stripes * stripe_length); in get_raid0_offset()
1001 initoff = (off / (num_stripes * stripe_length)) * stripe_length; in get_raid0_offset()
1003 *stripe = (uint16_t)(startoff / stripe_length); in get_raid0_offset()
1004 *stripeoff = initoff + startoff - (*stripe * stripe_length); in get_raid0_offset()
H A Dbtrfs.h342 uint64_t stripe_length; member
H A Dbtrfs.c3804 off_start -= off_start % ci->stripe_length;
3806 off_start += (j / sub_stripes) * ci->stripe_length;
3808 off_end = off_start + ci->stripe_length;
3811 …get_raid0_offset(off_start, ci->stripe_length, ci->num_stripes / sub_stripes, &startoff, &startoff…
3827 off_start -= off_start % ci->stripe_length;
3830 …ff_end = sector_align(superblock_addrs[i] - cis[j].offset + sizeof(superblock), ci->stripe_length);
3846 off_start -= off_start % ci->stripe_length;
3849 …ff_end = sector_align(superblock_addrs[i] - cis[j].offset + sizeof(superblock), ci->stripe_length);
3864 …superblock_addrs[i] - cis[j].offset) / c->chunk_item->stripe_length) * c->chunk_item->stripe_lengt…
3865 …ctor_align(superblock_addrs[i] - cis[j].offset + sizeof(superblock), c->chunk_item->stripe_length);
/reactos/sdk/lib/fslib/btrfslib/
H A Dbtrfslib.c435 c->chunk_item->stripe_length = max(sector_size, 0x10000);
460 uint64_t stripe = (address - c->offset) / c->chunk_item->stripe_length;
467 … uint64_t stripe2 = (superblock_addrs[j] - cis[i].offset) / c->chunk_item->stripe_length;
485 … addr = addr - ((addr - c->offset) % c->chunk_item->stripe_length) + c->chunk_item->stripe_length;