Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
yamingk committed Sep 18, 2023
1 parent e20b02f commit a989714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/device/virtual_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ BlkAllocStatus VirtualDev::alloc_blks(blk_count_t nblks, blk_alloc_hints const&
if (hints.chunk_id_hint) {
// this is a target-chunk allocation;
chunk = m_dmgr.get_chunk_mutable(*(hints.chunk_id_hint));
status = alloc_blk_from_chunk(nblks, hints, out_blkid, chunk);
status = alloc_blks_from_chunk(nblks, hints, out_blkid, chunk);
// don't look for other chunks because user wants allocation on chunk_id_hint only;
} else {
do {
Expand All @@ -205,7 +205,7 @@ BlkAllocStatus VirtualDev::alloc_blks(blk_count_t nblks, blk_alloc_hints const&
} while (++attempt < m_all_chunks.size());
}

if ((status != BlkAllocStatus::SUCCESS) && !((status == BlkAllocStatus::PARTIAL) && hints.partial_alloc_ok) {
if ((status != BlkAllocStatus::SUCCESS) && !((status == BlkAllocStatus::PARTIAL) && hints.partial_alloc_ok)) {
LOGERROR("nblks={} failed to alloc after trying to alloc on every chunks {} and devices {}.", nblks);
COUNTER_INCREMENT(m_metrics, vdev_num_alloc_failure, 1);
}
Expand Down

0 comments on commit a989714

Please sign in to comment.