/reactos/drivers/filesystems/btrfs/ |
H A D | scrub.c | 788 …>stripes[i].bad_csums + (j * Vcb->csum_size), (uint8_t*)csum + (j + Vcb->csum_size), Vcb->csum_siz… in scrub_extent_dup() 833 …>stripes[i].bad_csums + (j * Vcb->csum_size), (uint8_t*)csum + (j * Vcb->csum_size), Vcb->csum_siz… in scrub_extent_dup() 841 … (uint8_t*)csum + (j * Vcb->csum_size), Vcb->csum_size) == Vcb->csum_size) { in scrub_extent_dup() 864 …(uint8_t*)context->stripes[i].bad_csums + (j * Vcb->csum_size), th, Vcb->csum_size) != Vcb->csum_s… in scrub_extent_dup() 917 …>stripes[i].bad_csums + (j * Vcb->csum_size), (uint8_t*)csum + (j + Vcb->csum_size), Vcb->csum_siz… in scrub_extent_dup() 928 …(uint8_t*)context->stripes[i].bad_csums + (j * Vcb->csum_size), th, Vcb->csum_size) != Vcb->csum_s… in scrub_extent_dup() 1262 Vcb->csum_size) != Vcb->csum_size) { in scrub_extent_raid10() 1275 … Vcb->csum_size) != Vcb->csum_size) { in scrub_extent_raid10() 1865 …pareMemory(hash, (uint8_t*)context->csum + (Vcb->csum_size * bad_off), Vcb->csum_size) == Vcb->csu… in scrub_raid5_stripe() 1939 …ompareMemory(hash, (uint8_t*)context->csum + (Vcb->csum_size * off), Vcb->csum_size) != Vcb->csum_… in scrub_raid6_stripe() [all …]
|
H A D | write.c | 2506 … (ULONG)((ned2->num_bytes * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2516 …RtlCopyMemory(newext->csum, ext->csum, (ULONG)((ed2->size * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2579 …RtlCopyMemory(newext->csum, ext->csum, (ULONG)((ed2->size * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2687 … (ULONG)((nedb2->num_bytes * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2708 …RtlCopyMemory(newext1->csum, ext->csum, (ULONG)((ed2->size * Vcb->csum_size) >> Vcb->sector_shift)… in excise_extents() 2709 …RtlCopyMemory(newext2->csum, ext->csum, (ULONG)((ed2->size * Vcb->csum_size) >> Vcb->sector_shift)… in excise_extents() 2861 csum = ExAllocatePoolWithTag(PagedPool, sl * Vcb->csum_size, ALLOC_TAG); in insert_extent_chunk() 3600 void* csum = ExAllocatePoolWithTag(PagedPool, sl * fcb->Vcb->csum_size, ALLOC_TAG); in do_write_file_prealloc() 3666 void* csum = ExAllocatePoolWithTag(PagedPool, sl * fcb->Vcb->csum_size, ALLOC_TAG); in do_write_file_prealloc() 3756 void* csum = ExAllocatePoolWithTag(PagedPool, sl * fcb->Vcb->csum_size, ALLOC_TAG); in do_write_file_prealloc() [all …]
|
H A D | compress.c | 1099 csum = ExAllocatePoolWithTag(PagedPool, sl * fcb->Vcb->csum_size, ALLOC_TAG); in write_compressed() 1146 …csum2 = ExAllocatePoolWithTag(PagedPool, (parts[i].outlen * fcb->Vcb->csum_size) >> fcb->Vcb->sect… in write_compressed() 1155 …RtlCopyMemory(csum2, (uint8_t*)csum + (((extaddr - address) * fcb->Vcb->csum_size) >> fcb->Vcb->se… in write_compressed() 1156 (parts[i].outlen * fcb->Vcb->csum_size) >> fcb->Vcb->sector_shift); in write_compressed()
|
H A D | read.c | 90 csum2 = ExAllocatePoolWithTag(PagedPool, Vcb->csum_size * sectors, ALLOC_TAG); in check_csum() 98 if (RtlCompareMemory(csum2, csum, sectors * Vcb->csum_size) != sectors * Vcb->csum_size) { in check_csum() 388 ptr = (uint8_t*)ptr + Vcb->csum_size; in read_data_dup() 454 ptr = (uint8_t*)ptr + Vcb->csum_size; in read_data_raid0() 642 ptr = (uint8_t*)ptr + Vcb->csum_size; in read_data_raid10() 909 ptr = (uint8_t*)ptr + Vcb->csum_size; in read_data_raid5() 1469 ptr = (uint8_t*)ptr + Vcb->csum_size; in read_data_raid6() 3016 …rp->csum = (uint8_t*)ext->csum + (fcb->Vcb->csum_size * (rp->extents[0].off >> fcb->Vcb->sector_sh… in read_file() 3091 … rp2->csum = ExAllocatePoolWithTag(pool_type, sectors * fcb->Vcb->csum_size, ALLOC_TAG); in read_file() 3099 …RtlCopyMemory(rp2->csum, last_rp->csum, (last_rp->to_read * fcb->Vcb->csum_size) >> fcb->Vcb->sect… in read_file() [all …]
|
H A D | flushthread.c | 2628 uint16_t il = (uint16_t)min(length2, MAX_CSUM_SIZE / Vcb->csum_size); in add_checksum_entry() 2636 RtlCopyMemory(checksums, data, il * Vcb->csum_size); in add_checksum_entry() 2639 il * Vcb->csum_size, NULL, Irp); in add_checksum_entry() 2650 data = (uint8_t*)data + (il * Vcb->csum_size); in add_checksum_entry() 2678 tplen = tp.item->size / Vcb->csum_size; in add_checksum_entry() 2691 checksums = ExAllocatePoolWithTag(PagedPool, Vcb->csum_size * len, ALLOC_TAG); in add_checksum_entry() 2750 csum, length * Vcb->csum_size); in add_checksum_entry() 2772 if (runlength * Vcb->csum_size > MAX_CSUM_SIZE) in add_checksum_entry() 2773 rl = (uint16_t)(MAX_CSUM_SIZE / Vcb->csum_size); in add_checksum_entry() 2777 data = ExAllocatePoolWithTag(PagedPool, Vcb->csum_size * rl, ALLOC_TAG); in add_checksum_entry() [all …]
|
H A D | calcthread.c | 57 cj2->out = (uint8_t*)cj2->out + Vcb->csum_size; in calc_thread_main()
|
H A D | balance.c | 1842 …csum = ExAllocatePoolWithTag(PagedPool, (ULONG)((dr->size * Vcb->csum_size) >> Vcb->sector_shift),… in balance_data_chunk() 1872 …f (tp.item->size >= Vcb->csum_size && tp.item->key.offset + (((unsigned int)tp.item->size << Vcb->… in balance_data_chunk() 1874 …size, tp.item->key.offset + (((unsigned int)tp.item->size << Vcb->sector_shift) / Vcb->csum_size)); in balance_data_chunk() 1876 … RtlCopyMemory((uint8_t*)csum + (((cs - dr->address) * Vcb->csum_size) >> Vcb->sector_shift), in balance_data_chunk() 1877 … tp.item->data + (((cs - tp.item->key.offset) * Vcb->csum_size) >> Vcb->sector_shift), in balance_data_chunk() 1878 (ULONG)(((ce - cs) * Vcb->csum_size) >> Vcb->sector_shift)); in balance_data_chunk() 1944 …ddress + (index << Vcb->sector_shift), runlength, (uint8_t*)csum + (index * Vcb->csum_size), NULL); in balance_data_chunk() 1957 …(uint8_t*)csum + (index * Vcb->csum_size), false, data, c, NULL, NULL, 0, false, NormalPagePriorit… in balance_data_chunk()
|
H A D | fsctl.c | 3552 …csum = ExAllocatePoolWithTag(PagedPool, (ULONG)((ed2d->num_bytes * Vcb->csum_size) >> Vcb->sector_… in duplicate_extents() 3560 …xt2->csum, (uint8_t*)ext->csum + (((ed2d->offset - ed2s->offset) * Vcb->csum_size) >> Vcb->sector_… in duplicate_extents() 3561 … (ULONG)((ed2d->num_bytes * Vcb->csum_size) >> Vcb->sector_shift)); in duplicate_extents() 3563 …xt2->csum = ExAllocatePoolWithTag(PagedPool, (ULONG)((ed2d->size * Vcb->csum_size) >> Vcb->sector_… in duplicate_extents() 3571 … RtlCopyMemory(ext2->csum, ext->csum, (ULONG)((ed2s->size * Vcb->csum_size) >> Vcb->sector_shift)); in duplicate_extents() 5204 *ptr += sparse_extents * Vcb->csum_size; 5263 buf->csum_length = Vcb->csum_size; 5315 …memset(ptr, 0, (ed2->num_bytes >> Vcb->sector_shift) * Vcb->csum_size); // dummy value for compres… 5318 memcpy(ptr, ext->csum, (ed2->num_bytes >> Vcb->sector_shift) * Vcb->csum_size); 5320 memset(ptr, 0, (ed2->num_bytes >> Vcb->sector_shift) * Vcb->csum_size); [all …]
|
H A D | create.c | 481 …if (j * Vcb->csum_size > tp.item->size || tp.item->key.offset > start + (i << Vcb->sector_shift)) { 486 readlen = (ULONG)min((tp.item->size / Vcb->csum_size) - j, length - i); 487 RtlCopyMemory(ptr, tp.item->data + (j * Vcb->csum_size), readlen * Vcb->csum_size); 489 ptr = (uint8_t*)ptr + (readlen * Vcb->csum_size); 3567 … ext->csum = ExAllocatePoolWithTag(NonPagedPool, (ULONG)(len * Vcb->csum_size), ALLOC_TAG);
|
H A D | btrfs.c | 4650 Vcb->csum_size = sizeof(uint32_t); 4654 Vcb->csum_size = sizeof(uint64_t); 4658 Vcb->csum_size = SHA256_HASH_SIZE; 4662 Vcb->csum_size = BLAKE2_HASH_SIZE;
|
H A D | btrfs_drv.h | 771 unsigned int csum_size; member
|
H A D | send.c | 2336 … csum = ExAllocatePoolWithTag(PagedPool, len * context->Vcb->csum_size, ALLOC_TAG); in flush_extents() 2415 csum = ExAllocatePoolWithTag(PagedPool, len * context->Vcb->csum_size, ALLOC_TAG); in flush_extents()
|