Home
last modified time | relevance | path

Searched refs:batch_size_ (Results 1 – 2 of 2) sorted by relevance

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dwriter_v3.cpp67 : CowWriterBase(options, std::move(fd)), batch_size_(std::max<size_t>(options.cluster_ops, 1)) { in CowWriterV3()
173 batch_size_ = std::max<size_t>(options_.cluster_ops, 1); in ParseOptions()
174 data_vec_.reserve(batch_size_); in ParseOptions()
175 cached_data_.reserve(batch_size_); in ParseOptions()
176 cached_ops_.reserve(batch_size_ * kNonDataOpBufferSize); in ParseOptions()
179 if (batch_size_ > 1) { in ParseOptions()
180 LOG(INFO) << "Batch writes: enabled with batch size " << batch_size_; in ParseOptions()
344 return CachedDataSize() >= batch_size_ * header_.block_size || in NeedsFlush()
345 cached_ops_.size() >= batch_size_ * kNonDataOpBufferSize; in NeedsFlush()
402 size_t chunk = std::min(num_blocks - total_written, batch_size_); in EmitBlocks()
Dwriter_v3.h115 size_t batch_size_ = 1; variable