Searched refs:BLOCK_SZ (Results 1 – 6 of 6) sorted by relevance
/system/core/fs_mgr/libsnapshot/ |
D | snapuserd_worker.cpp | 121 void* buffer = bufsink_.GetPayloadBuffer(BLOCK_SZ); in ConstructKernelCowHeader() 123 memset(buffer, 0, BLOCK_SZ); in ConstructKernelCowHeader() 146 void* buffer = bufsink_.GetPayloadBuffer(BLOCK_SZ); in ReadFromBaseDevice() 153 if (!android::base::ReadFullyAtOffset(backing_store_fd_, buffer, BLOCK_SZ, in ReadFromBaseDevice() 154 cow_op->source * BLOCK_SZ)) { in ReadFromBaseDevice() 164 void* buffer = bufsink_.GetPayloadBuffer(BLOCK_SZ); in GetReadAheadPopulatedBuffer() 193 void* buffer = bufsink_.GetPayloadBuffer(BLOCK_SZ); in ProcessZeroOp() 199 memset(buffer, 0, BLOCK_SZ); in ProcessZeroOp() 250 if (skip_sector_size == BLOCK_SZ) { in ReadUnalignedSector() 257 (BLOCK_SZ - skip_sector_size)); in ReadUnalignedSector() [all …]
|
D | snapuserd_readahead.cpp | 295 int num_ops = (snapuserd_->GetBufferDataSize()) / BLOCK_SZ; in ReadAheadIOStart() 328 size_t io_size = (linear_blocks * BLOCK_SZ); in ReadAheadIOStart() 345 offset += BLOCK_SZ; in ReadAheadIOStart() 353 file_offset += BLOCK_SZ; in ReadAheadIOStart() 361 source_block * BLOCK_SZ)) { in ReadAheadIOStart()
|
D | snapuserd.cpp | 65 int ret = msync(mapped_addr_, BLOCK_SZ, MS_SYNC); in CommitMerge() 109 memcpy(buffer, it->second, BLOCK_SZ); in GetRABuffer() 221 ret = msync(mapped_addr_, BLOCK_SZ, MS_SYNC); in ReadAheadIOCompleted() 350 if (!(header.block_size == BLOCK_SZ)) { in ReadMetadata() 443 int num_ra_ops_per_iter = ((GetBufferDataSize()) / BLOCK_SZ); in ReadMetadata() 631 total_mapped_addr_length_ = BLOCK_SZ; in MmapMetadata() 737 size_t metadata_bytes = (header.buffer_size * sizeof(struct ScratchMetadata)) / BLOCK_SZ; in GetBufferMetadataSize()
|
D | snapuserd.h | 53 static_assert(PAYLOAD_SIZE >= BLOCK_SZ); 296 bool IsBlockAligned(int read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned()
|
D | cow_snapuserd_test.cpp | 630 ASSERT_EQ(ReadFullyAtOffset(fd, (char*)buffer.get() + offset, BLOCK_SZ, offset), false); in ReadDmUserBlockWithoutDaemon() 632 offset += BLOCK_SZ; in ReadDmUserBlockWithoutDaemon()
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | cow_format.h | 29 static constexpr uint32_t BLOCK_SZ = 4096; variable 30 static constexpr uint32_t BLOCK_SHIFT = (__builtin_ffs(BLOCK_SZ) - 1);
|