Home
last modified time | relevance | path

Searched refs:snapuserd_ (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapuserd_readahead.cpp171 snapuserd_ = snapuserd; in ReadAheadThread()
222 std::unordered_map<uint64_t, void*>& read_ahead_buffer_map = snapuserd_->GetReadAheadMap(); in ReconstructDataFromCow()
225 loff_t start_data_offset = snapuserd_->GetBufferDataOffset(); in ReconstructDataFromCow()
254 snapuserd_->SetFinalBlockMerged(op->new_block); in ReconstructDataFromCow()
263 snapuserd_->ReadAheadIOFailed(); in ReconstructDataFromCow()
270 snapuserd_->SetTotalRaBlocksMerged(total_blocks_merged); in ReconstructDataFromCow()
272 snapuserd_->ReconstructDataFromCowFinish(); in ReconstructDataFromCow()
274 if (!snapuserd_->ReadAheadIOCompleted(true)) { in ReconstructDataFromCow()
276 snapuserd_->ReadAheadIOFailed(); in ReconstructDataFromCow()
288 if (snapuserd_->ReconstructDataFromCow()) { in ReadAheadIOStart()
[all …]
Dsnapuserd_server.h56 if (snapuserd_) { in FreeResources()
57 snapuserd_->FreeResources(); in FreeResources()
58 snapuserd_ = nullptr; in FreeResources()
61 const std::shared_ptr<Snapuserd>& snapuserd() const { return snapuserd_; } in snapuserd()
68 std::shared_ptr<Snapuserd> snapuserd_; variable
Dsnapuserd_worker.cpp81 snapuserd_ = snapuserd; in WorkerThread()
170 if (!snapuserd_->GetReadAheadPopulatedBuffer(cow_op->new_block, buffer)) { in GetReadAheadPopulatedBuffer()
275 std::vector<std::pair<sector_t, const CowOperation*>>& chunk_vec = snapuserd_->GetChunkVec(); in ReadData()
405 const std::vector<std::unique_ptr<uint8_t[]>>& vec = snapuserd_->GetMetadataVec(); in ReadDiskExceptions()
475 std::unordered_map<uint64_t, void*>& read_ahead_buffer_map = snapuserd_->GetReadAheadMap(); in GetNumberOfMergedOps()
477 std::vector<std::pair<sector_t, const CowOperation*>>& chunk_vec = snapuserd_->GetChunkVec(); in GetNumberOfMergedOps()
514 if (snapuserd_->IsReadAheadFeaturePresent() && cow_op->type == kCowCopyOp) { in GetNumberOfMergedOps()
527 if (cow_op->new_block == snapuserd_->GetFinalBlockMerged()) { in GetNumberOfMergedOps()
559 const std::vector<std::unique_ptr<uint8_t[]>>& vec = snapuserd_->GetMetadataVec(); in ProcessMergeComplete()
597 snapuserd_->StartReadAhead(); in ProcessMergeComplete()
[all …]
Dcow_snapuserd_test.cpp168 std::unique_ptr<Snapuserd> snapuserd_; member in android::snapshot::CowSnapuserdMetadataTest
816 int area_sz = snapuserd_->GetMetadataAreaSize(); in ValidatePartialFilledArea()
822 void* buffer = snapuserd_->GetExceptionBuffer(1); in ValidatePartialFilledArea()
909 snapuserd_ = std::make_unique<Snapuserd>("", cow_system_->path, ""); in InitMetadata()
910 ASSERT_TRUE(snapuserd_->InitCowDevice()); in InitMetadata()
919 int area_sz = snapuserd_->GetMetadataAreaSize(); in ValidateMetadata()
926 void* buffer = snapuserd_->GetExceptionBuffer(i); in ValidateMetadata()
Dsnapuserd.h146 std::shared_ptr<Snapuserd> snapuserd_; variable
219 std::shared_ptr<Snapuserd> snapuserd_; variable
Dsnapuserd_server.cpp81 : snapuserd_(snapuserd), misc_name_(snapuserd_->GetMiscName()) {} in DmUserHandler()