/reactos/drivers/filesystems/btrfs/ |
H A D | scrub.c | 1645 if (runlength << Vcb->sector_shift > SCRUB_UNIT) in scrub_data_extent() 1646 rl = SCRUB_UNIT >> Vcb->sector_shift; in scrub_data_extent() 1774 o = i << Vcb->sector_shift; in scrub_raid5_stripe() 1823 &context->parity_scratch[i << Vcb->sector_shift], in scrub_raid5_stripe() 1970 o = i << Vcb->sector_shift; in scrub_raid6_stripe() 2087 do_xor(&context->parity_scratch[i << Vcb->sector_shift], in scrub_raid6_stripe() 2336 qxy = &context->parity_scratch[i << Vcb->sector_shift]; in scrub_raid6_stripe() 2347 …do_xor(&context->parity_scratch2[i << Vcb->sector_shift], &context->parity_scratch[i << Vcb->secto… in scrub_raid6_stripe() 2538 …LONG)((extent_start - run_start) >> Vcb->sector_shift), (ULONG)((extent_end - extent_start) >> Vcb… in scrub_chunk_raid56_stripe_run() 3015 bmplen = (ULONG)(size >> Vcb->sector_shift); in scrub_chunk() [all …]
|
H A D | read.c | 347 if (!check_sector_csum(Vcb, buf + (i << Vcb->sector_shift), ptr)) { in read_data_dup() 440 for (uint32_t i = 0; i < length >> Vcb->sector_shift; i++) { in read_data_raid0() 576 ULONG sectors = length >> Vcb->sector_shift; in read_data_raid10() 587 if (!check_sector_csum(Vcb, buf + (i << Vcb->sector_shift), ptr)) { in read_data_raid10() 822 ULONG sectors = length >> Vcb->sector_shift; in read_data_raid5() 1274 ULONG sectors = length >> Vcb->sector_shift; in read_data_raid6() 1342 …do_xor(sector + ((unsigned int)stripe << Vcb->sector_shift), sector + ((unsigned int)j << Vcb->sec… in read_data_raid6() 1346 …RtlCopyMemory(buf + (i << Vcb->sector_shift), sector + ((unsigned int)stripe << Vcb->sector_shift)… in read_data_raid6() 1408 …RtlCopyMemory(buf + (i << Vcb->sector_shift), sector + ((unsigned int)ci->num_stripes << Vcb->sect… in read_data_raid6() 1430 …gned int)(ci->num_stripes - 2) << Vcb->sector_shift), sector + ((unsigned int)ci->num_stripes << V… in read_data_raid6() [all …]
|
H A D | free-space.c | 288 addr = offset + (index << Vcb->sector_shift); in load_free_space_bitmap() 289 length = runlength << Vcb->sector_shift; in load_free_space_bitmap() 566 num_sectors = size >> Vcb->sector_shift; in load_stored_free_space_cache() 587 if (i << Vcb->sector_shift > sizeof(uint32_t) * num_sectors) in load_stored_free_space_cache() 604 if ((off + sizeof(FREE_SPACE_ENTRY)) >> Vcb->sector_shift != off >> Vcb->sector_shift) in load_stored_free_space_cache() 630 if ((off + sizeof(FREE_SPACE_ENTRY)) >> Vcb->sector_shift != off >> Vcb->sector_shift) in load_stored_free_space_cache() 806 bmpl = (ULONG)tp.item->key.offset >> Vcb->sector_shift; in load_stored_free_space_tree() 828 runend = runstart + (runlength << Vcb->sector_shift); in load_stored_free_space_tree() 1087 …if ((new_cache_size >> Vcb->sector_shift) != ((new_cache_size + sizeof(FREE_SPACE_ENTRY)) >> Vcb->… in allocate_cache_chunk() 1743 if ((off + sizeof(FREE_SPACE_ENTRY)) >> Vcb->sector_shift != off >> Vcb->sector_shift) in update_chunk_cache() [all …]
|
H A D | balance.c | 1833 bmplen = (ULONG)(dr->size >> Vcb->sector_shift); in balance_data_chunk() 1880 …learBits(&bmp, (ULONG)((cs - dr->address) >> Vcb->sector_shift), (ULONG)((ce - cs) >> Vcb->sector_… in balance_data_chunk() 1921 …Status = read_data(Vcb, dr->address + (off << Vcb->sector_shift), rl << Vcb->sector_shift, NULL, f… in balance_data_chunk() 1930 …ite_data_complete(Vcb, dr->new_address + (off << Vcb->sector_shift), data, rl << Vcb->sector_shift, in balance_data_chunk() 1952 rl = BALANCE_UNIT >> Vcb->sector_shift; in balance_data_chunk() 1956 … Status = read_data(Vcb, dr->address + (index << Vcb->sector_shift), rl << Vcb->sector_shift, in balance_data_chunk() 1965 …e_data_complete(Vcb, dr->new_address + (index << Vcb->sector_shift), data, rl << Vcb->sector_shift, in balance_data_chunk() 1986 if (lastoff < dr->size >> Vcb->sector_shift) { in balance_data_chunk() 1994 rl = BALANCE_UNIT >> Vcb->sector_shift; in balance_data_chunk() 1998 …Status = read_data(Vcb, dr->address + (off << Vcb->sector_shift), rl << Vcb->sector_shift, NULL, f… in balance_data_chunk() [all …]
|
H A D | flushthread.c | 2649 off += (uint64_t)il << Vcb->sector_shift; in add_checksum_entry() 2680 … if (tp.item->key.offset + (tplen << Vcb->sector_shift) >= address + (length << Vcb->sector_shift)) in add_checksum_entry() 5846 … readlen << Vcb->sector_shift, ps->data + (offset << Vcb->sector_shift), false); in partial_stripe_read() 5870 … readlen << Vcb->sector_shift, ps->data + (offset << Vcb->sector_shift), false); in partial_stripe_read() 5885 … do_xor(ps->data + (offset << Vcb->sector_shift), scratch, readlen << Vcb->sector_shift); in partial_stripe_read() 5908 … readlen << Vcb->sector_shift, scratch + (k * readlen << Vcb->sector_shift), false); in partial_stripe_read() 5932 …RtlCopyMemory(ps->data + (offset << Vcb->sector_shift), scratch + (k * readlen << Vcb->sector_shif… in partial_stripe_read() 5935 … do_xor(ps->data + (offset << Vcb->sector_shift), scratch + (k * readlen << Vcb->sector_shift), in partial_stripe_read() 5944 …yMemory(ps->data + (offset << Vcb->sector_shift), scratch + (c->chunk_item->num_stripes * readlen … in partial_stripe_read() 5945 readlen << Vcb->sector_shift); in partial_stripe_read() [all …]
|
H A D | write.c | 1003 …Bits(&ps->bmp, (ULONG)((address - stripe_addr) >> Vcb->sector_shift), length >> Vcb->sector_shift); in add_partial_stripe() 1038 ps->bmplen = (ULONG)(num_data_stripes * c->chunk_item->stripe_length) >> Vcb->sector_shift; in add_partial_stripe() 1053 …Bits(&ps->bmp, (ULONG)((address - stripe_addr) >> Vcb->sector_shift), length >> Vcb->sector_shift); in add_partial_stripe() 2506 … (ULONG)((ned2->num_bytes * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2687 … (ULONG)((nedb2->num_bytes * Vcb->csum_size) >> Vcb->sector_shift)); in excise_extents() 2859 ULONG sl = (ULONG)(length >> Vcb->sector_shift); in insert_extent_chunk() 3599 ULONG sl = (ULONG)(ed2->num_bytes >> fcb->Vcb->sector_shift); in do_write_file_prealloc() 3665 ULONG sl = (ULONG)((end_data - ext->offset) >> fcb->Vcb->sector_shift); in do_write_file_prealloc() 3755 ULONG sl = (ULONG)(ned2->num_bytes >> fcb->Vcb->sector_shift); in do_write_file_prealloc() 3859 ULONG sl = (ULONG)((end_data - start_data) >> fcb->Vcb->sector_shift); in do_write_file_prealloc() [all …]
|
H A D | fsctl.c | 2017 end = (fzdi->BeyondFinalZero.QuadPart >> Vcb->sector_shift) << Vcb->sector_shift; in set_zero_data() 5054 if ((ext->offset >> Vcb->sector_shift) <= (uint64_t)in->StartingVcn.QuadPart && 5067 if (num_sectors > last_off >> Vcb->sector_shift) 5076 out->StartingVcn.QuadPart = first_ext->offset >> Vcb->sector_shift; 5098 out->Extents[i].NextVcn.QuadPart = ext->offset >> Vcb->sector_shift; 5127 if (num_sectors << Vcb->sector_shift > last_off) { 5306 uint64_t sparse_extents = (ext->offset - last_off) >> Vcb->sector_shift; 5320 memset(ptr, 0, (ed2->num_bytes >> Vcb->sector_shift) * Vcb->csum_size); 5322 ptr += (ed2->num_bytes >> Vcb->sector_shift) * Vcb->csum_size; 5330 if (buf->num_sectors > last_off >> Vcb->sector_shift) { [all …]
|
H A D | compress.c | 1097 unsigned int sl = buflen >> fcb->Vcb->sector_shift; in write_compressed() 1146 …olWithTag(PagedPool, (parts[i].outlen * fcb->Vcb->csum_size) >> fcb->Vcb->sector_shift, ALLOC_TAG); in write_compressed() 1155 …ry(csum2, (uint8_t*)csum + (((extaddr - address) * fcb->Vcb->csum_size) >> fcb->Vcb->sector_shift), in write_compressed() 1156 (parts[i].outlen * fcb->Vcb->csum_size) >> fcb->Vcb->sector_shift); in write_compressed()
|
H A D | extent-tree.c | 1027 … add_checksum_entry(Vcb, address, (ULONG)(size >> Vcb->sector_shift), NULL, Irp); in decrease_extent_refcount() 1093 … add_checksum_entry(Vcb, address, (ULONG)(size >> Vcb->sector_shift), NULL, Irp); in decrease_extent_refcount() 1299 add_checksum_entry(Vcb, address, (ULONG)(size >> Vcb->sector_shift), NULL, Irp); in decrease_extent_refcount() 1382 add_checksum_entry(Vcb, address, (ULONG)(size >> Vcb->sector_shift), NULL, Irp); in decrease_extent_refcount() 1508 add_checksum_entry(Vcb, address, (ULONG)(size >> Vcb->sector_shift), NULL, Irp); in decrease_extent_refcount()
|
H A D | create.c | 479 j = ((start - tp.item->key.offset) >> Vcb->sector_shift) + i; 481 …if (j * Vcb->csum_size > tp.item->size || tp.item->key.offset > start + (i << Vcb->sector_shift)) { 482 ERR("checksum not found for %I64x\n", start + (i << Vcb->sector_shift)); 3565 …tent_data.compression == BTRFS_COMPRESSION_NONE ? ed2->num_bytes : ed2->size) >> Vcb->sector_shift;
|
H A D | btrfs.c | 642 sectors_used = (Vcb->superblock.bytes_used >> Vcb->sector_shift) * nfactor / dfactor; 644 *totalsize = (Vcb->superblock.total_bytes >> Vcb->sector_shift) * nfactor / dfactor; 4367 Vcb->sector_shift = 0; 4370 Vcb->sector_shift++;
|
H A D | btrfs_drv.h | 770 unsigned int sector_shift; member
|
H A D | send.c | 2334 …tor_align(length + skip_start, context->Vcb->superblock.sector_size) >> context->Vcb->sector_shift; in flush_extents() 2413 len = (uint32_t)(ed2->size >> context->Vcb->sector_shift); in flush_extents()
|
H A D | fileinfo.c | 569 len = (len * sizeof(uint32_t)) >> Vcb->sector_shift; in duplicate_fcb()
|