From: Radoslaw Zarzynski Date: Sun, 10 Sep 2017 12:05:26 +0000 (+0200) Subject: os/bluestore: drop support for non-bulky extent release. X-Git-Tag: v13.0.1~711^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=90bbcd7cbb538d5e96c0e7e12de6365a13cbf9de;p=ceph-ci.git os/bluestore: drop support for non-bulky extent release. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/os/bluestore/Allocator.h b/src/os/bluestore/Allocator.h index c32b33c0c17..025d5b86fde 100644 --- a/src/os/bluestore/Allocator.h +++ b/src/os/bluestore/Allocator.h @@ -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& release_set) = 0; diff --git a/src/os/bluestore/BitMapAllocator.cc b/src/os/bluestore/BitMapAllocator.cc index d63804a56fd..a6646bb085f 100644 --- a/src/os/bluestore/BitMapAllocator.cc +++ b/src/os/bluestore/BitMapAllocator.cc @@ -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& release_set) { diff --git a/src/os/bluestore/BitMapAllocator.h b/src/os/bluestore/BitMapAllocator.h index 36483705db0..5a3010409c4 100644 --- a/src/os/bluestore/BitMapAllocator.h +++ b/src/os/bluestore/BitMapAllocator.h @@ -35,8 +35,6 @@ public: uint64_t want_size, uint64_t alloc_unit, uint64_t max_alloc_size, int64_t hint, mempool::bluestore_alloc::vector *extents) override; - void release( - uint64_t offset, uint64_t length) override; void release( const interval_set& release_set) override; diff --git a/src/os/bluestore/StupidAllocator.cc b/src/os/bluestore/StupidAllocator.cc index f422fc52c03..0c28fa1730a 100644 --- a/src/os/bluestore/StupidAllocator.cc +++ b/src/os/bluestore/StupidAllocator.cc @@ -241,16 +241,6 @@ int64_t StupidAllocator::allocate( return allocated_size; } -void StupidAllocator::release( - uint64_t offset, uint64_t length) -{ - std::lock_guard l(lock); - ldout(cct, 10) << __func__ << " 0x" << std::hex << offset << "~" << length - << std::dec << dendl; - _insert_free(offset, length); - num_free += length; -} - void StupidAllocator::release( const interval_set& release_set) { diff --git a/src/os/bluestore/StupidAllocator.h b/src/os/bluestore/StupidAllocator.h index 0b6780c9b16..c8e6b28120f 100644 --- a/src/os/bluestore/StupidAllocator.h +++ b/src/os/bluestore/StupidAllocator.h @@ -46,8 +46,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& release_set) override;