]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: more verbose logging in new bitmap allocator
authorIgor Fedotov <ifedotov@suse.com>
Wed, 30 May 2018 12:24:05 +0000 (15:24 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Sun, 17 Mar 2019 17:55:31 +0000 (20:55 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 160c73032db2e122f5e643090c86eed85e679eb4)

src/os/bluestore/BitmapFastAllocator.cc

index 35c752708fa3454c04d1f6410ff38164272c9d22..2f080882f75bbe82c5c2dc825afc39bac55e3f04 100755 (executable)
@@ -24,6 +24,11 @@ int64_t BitmapFastAllocator::allocate(
 {
   uint64_t allocated = 0;
 
+  ldout(cct, 10) << __func__ << std::hex << "0x" << want_size
+                << "/" << alloc_unit << "," << max_alloc_size << "," << hint
+                << std::dec << dendl;
+    
+    
   _allocate_l2(want_size, alloc_unit, max_alloc_size, hint,
     &allocated, extents);
   if (!allocated) {
@@ -46,6 +51,7 @@ void BitmapFastAllocator::release(
                  << std::dec << dendl;
   }
   _free_l2(release_set);
+  ldout(cct, 10) << __func__ << " done" << dendl;
 }
 
 
@@ -59,6 +65,7 @@ void BitmapFastAllocator::init_add_free(uint64_t offset, uint64_t length)
   uint64_t l = P2ALIGN(offset + length - offs, mas);
 
   _mark_free(offs, l);
+  ldout(cct, 10) << __func__ << " done" << dendl;
 }
 void BitmapFastAllocator::init_rm_free(uint64_t offset, uint64_t length)
 {
@@ -68,6 +75,7 @@ void BitmapFastAllocator::init_rm_free(uint64_t offset, uint64_t length)
   uint64_t offs = ROUND_UP_TO(offset, mas);
   uint64_t l = P2ALIGN(offset + length - offs, mas);
   _mark_allocated(offs, l);
+  ldout(cct, 10) << __func__ << " done" << dendl;
 }
 
 void BitmapFastAllocator::shutdown()