]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/bluestore/BitmapAllocator.cc
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / os / bluestore / BitmapAllocator.cc
index d46a4d37ca91d0288d6a1140dc66c535460ca826..f501783a6744931e20b9fc047fd90bb43e0cf4e2 100755 (executable)
@@ -61,8 +61,8 @@ void BitmapAllocator::init_add_free(uint64_t offset, uint64_t length)
                  << std::dec << dendl;
 
   auto mas = get_min_alloc_size();
-  uint64_t offs = ROUND_UP_TO(offset, mas);
-  uint64_t l = P2ALIGN(offset + length - offs, mas);
+  uint64_t offs = round_up_to(offset, mas);
+  uint64_t l = p2align(offset + length - offs, mas);
 
   _mark_free(offs, l);
   ldout(cct, 10) << __func__ << " done" << dendl;
@@ -72,8 +72,8 @@ void BitmapAllocator::init_rm_free(uint64_t offset, uint64_t length)
   ldout(cct, 10) << __func__ << " 0x" << std::hex << offset << "~" << length
                 << std::dec << dendl;
   auto mas = get_min_alloc_size();
-  uint64_t offs = ROUND_UP_TO(offset, mas);
-  uint64_t l = P2ALIGN(offset + length - offs, mas);
+  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;
 }