]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cleanup: add override for bluestore 13390/head
authorliuchang0812 <liuchang0812@gmail.com>
Mon, 13 Feb 2017 13:05:41 +0000 (21:05 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Mon, 13 Feb 2017 13:05:41 +0000 (21:05 +0800)
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
src/os/bluestore/BitMapAllocator.h
src/os/bluestore/StupidAllocator.h

index e5b9ca6d6f0ee12c988512edf63d9096069b0721..b2134d06b33bea1a13e323392506b414d9d6c79a 100644 (file)
@@ -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<AllocExtent> *extents);
+    int64_t hint, mempool::bluestore_alloc::vector<AllocExtent> *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
index ce8101a552d51fdd524ef3fbb9c807089cc630d9..a051bd0efffe81b2dc592a5618ef25f98560d4b4 100644 (file)
@@ -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<AllocExtent> *extents);
+    int64_t hint, mempool::bluestore_alloc::vector<AllocExtent> *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