]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: drop support for non-bulky extent release.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Sun, 10 Sep 2017 12:05:26 +0000 (14:05 +0200)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 14 Mar 2019 16:41:07 +0000 (19:41 +0300)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 90bbcd7cbb538d5e96c0e7e12de6365a13cbf9de)

src/os/bluestore/Allocator.h
src/os/bluestore/BitMapAllocator.cc
src/os/bluestore/BitMapAllocator.h
src/os/bluestore/StupidAllocator.cc
src/os/bluestore/StupidAllocator.h

index c32b33c0c17ef70c7c73097251d14c8dea162cd8..025d5b86fde2070a33928186031acc6fbfdc2074 100644 (file)
@@ -43,9 +43,6 @@ public:
     return allocate(want_size, alloc_unit, want_size, hint, extents);
   }
 
-  virtual void release(
-    uint64_t offset, uint64_t length) = 0;
-
   /* Bulk release. Implementations may override this method to handle the whole
    * set at once. This could save e.g. unnecessary mutex dance. */
   virtual void release(const interval_set<uint64_t>& release_set) = 0;
index d63804a56fd4322ab957954ced9bdb5e2f60c6de..a6646bb085fc40a3c7def18ef26c637a4f37b841 100644 (file)
@@ -145,15 +145,6 @@ int64_t BitMapAllocator::allocate_dis(
   return num * m_block_size;
 }
 
-void BitMapAllocator::release(
-  uint64_t offset, uint64_t length)
-{
-  dout(10) << __func__ << " 0x"
-           << std::hex << offset << "~" << length << std::dec
-           << dendl;
-  insert_free(offset, length);
-}
-
 void BitMapAllocator::release(
   const interval_set<uint64_t>& release_set)
 {
index 6da4561f63da16593c1c7da9112685a8914e52c0..b9a51714e880da7e0424a05f30ee406fd3235246 100644 (file)
@@ -34,8 +34,6 @@ public:
     uint64_t want_size, uint64_t alloc_unit, uint64_t max_alloc_size,
     int64_t hint, mempool::bluestore_alloc::vector<AllocExtent> *extents) override;
 
-  void release(
-    uint64_t offset, uint64_t length) override;
   void release(
     const interval_set<uint64_t>& release_set) override;
 
index 6aa527fe953860db2fc8314574d156118c9cf579..d386af76eeb89a4dde550ac6c41570c310568464 100644 (file)
@@ -240,16 +240,6 @@ int64_t StupidAllocator::allocate(
   return allocated_size;
 }
 
-void StupidAllocator::release(
-  uint64_t offset, uint64_t length)
-{
-  std::lock_guard<std::mutex> l(lock);
-  dout(10) << __func__ << " 0x" << std::hex << offset << "~" << length
-          << std::dec << dendl;
-  _insert_free(offset, length);
-  num_free += length;
-}
-
 void StupidAllocator::release(
   const interval_set<uint64_t>& release_set)
 {
index d432868b38a775601262ebb6c43e6dc111c621df..ccf0f0ec14b60b391003c326cff80cd18976738b 100644 (file)
@@ -49,8 +49,6 @@ public:
     uint64_t want_size, uint64_t alloc_unit, int64_t hint,
     uint64_t *offset, uint32_t *length);
 
-  void release(
-    uint64_t offset, uint64_t length) override;
   void release(
     const interval_set<uint64_t>& release_set) override;