]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: perfect comments in hybrid_allocator 59696/head
authorwanglinke <wanglinke@cmss.chinamobile.com>
Tue, 10 Sep 2024 08:21:32 +0000 (16:21 +0800)
committerwanglinke <wanglinke@cmss.chinamobile.com>
Tue, 10 Sep 2024 08:22:08 +0000 (16:22 +0800)
co-author: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
Signed-off-by: Wang Linke <wanglinke_yewu@cmss.chinamobile.com>
src/os/bluestore/HybridAllocator_impl.h

index 8a41e86a3cf1cf01bef4d38fc67ff67dade77918..3897c7b5d090eb84cd36b5f2b9679e94cc7b65da 100644 (file)
@@ -38,7 +38,7 @@ int64_t HybridAllocatorBase<T>::allocate(
   std::lock_guard l(T::get_lock());
 
   // try bitmap first to avoid unneeded contiguous extents split if
-  // desired amount is less than shortes range in AVL
+  // desired amount is less than shortes range in AVL or Btree2
   bool primary_first = !(bmap_alloc &&
                          bmap_alloc->get_free() &&
                          want < T::_lowest_size_available());