From: liuchang0812 Date: Mon, 13 Feb 2017 13:05:41 +0000 (+0800) Subject: cleanup: add override for bluestore X-Git-Tag: v12.0.1~380^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b893123e071340e6e877905bb6a462edb0bc355d;p=ceph.git cleanup: add override for bluestore Signed-off-by: liuchang0812 --- diff --git a/src/os/bluestore/BitMapAllocator.h b/src/os/bluestore/BitMapAllocator.h index e5b9ca6d6f0e..b2134d06b33b 100644 --- a/src/os/bluestore/BitMapAllocator.h +++ b/src/os/bluestore/BitMapAllocator.h @@ -29,24 +29,24 @@ public: BitMapAllocator(CephContext* cct, int64_t device_size, int64_t block_size); ~BitMapAllocator(); - int reserve(uint64_t need); - void unreserve(uint64_t unused); + int reserve(uint64_t need) override; + void unreserve(uint64_t unused) override; int64_t allocate( uint64_t want_size, uint64_t alloc_unit, uint64_t max_alloc_size, - int64_t hint, mempool::bluestore_alloc::vector *extents); + int64_t hint, mempool::bluestore_alloc::vector *extents) override; int release( - uint64_t offset, uint64_t length); + uint64_t offset, uint64_t length) override; - uint64_t get_free(); + uint64_t get_free() override; void dump() override; - void init_add_free(uint64_t offset, uint64_t length); - void init_rm_free(uint64_t offset, uint64_t length); + void init_add_free(uint64_t offset, uint64_t length) override; + void init_rm_free(uint64_t offset, uint64_t length) override; - void shutdown(); + void shutdown() override; }; #endif diff --git a/src/os/bluestore/StupidAllocator.h b/src/os/bluestore/StupidAllocator.h index ce8101a552d5..a051bd0efffe 100644 --- a/src/os/bluestore/StupidAllocator.h +++ b/src/os/bluestore/StupidAllocator.h @@ -28,28 +28,28 @@ public: StupidAllocator(CephContext* cct); ~StupidAllocator(); - int reserve(uint64_t need); - void unreserve(uint64_t unused); + int reserve(uint64_t need) override; + void unreserve(uint64_t unused) override; int64_t allocate( uint64_t want_size, uint64_t alloc_unit, uint64_t max_alloc_size, - int64_t hint, mempool::bluestore_alloc::vector *extents); + int64_t hint, mempool::bluestore_alloc::vector *extents) override; int64_t allocate_int( uint64_t want_size, uint64_t alloc_unit, int64_t hint, uint64_t *offset, uint32_t *length); int release( - uint64_t offset, uint64_t length); + uint64_t offset, uint64_t length) override; - uint64_t get_free(); + uint64_t get_free() override; void dump() override; - void init_add_free(uint64_t offset, uint64_t length); - void init_rm_free(uint64_t offset, uint64_t length); + void init_add_free(uint64_t offset, uint64_t length) override; + void init_rm_free(uint64_t offset, uint64_t length) override; - void shutdown(); + void shutdown() override; }; #endif