]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove cmake warning from extent alloc functions. 10492/head
authorRamesh Chander <Ramesh.Chander@sandisk.com>
Fri, 29 Jul 2016 09:16:57 +0000 (02:16 -0700)
committerRamesh Chander <Ramesh.Chander@sandisk.com>
Tue, 2 Aug 2016 15:39:28 +0000 (08:39 -0700)
link: http://tracker.ceph.com/issues/16766
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
src/os/bluestore/Allocator.h
src/os/bluestore/BitAllocator.h

index 774eb1196a678cabca6424324e3485f5dfd1d7de..220cda9ec4e8ff85fb00ebcfcb50f5cb445690a5 100644 (file)
@@ -43,9 +43,8 @@ public:
                             uint64_t max_alloc_size, int64_t hint,
                             std::vector<AllocExtent> *extents, int *count) = 0;
 
-  virtual int alloc_extents(uint64_t want_size, uint64_t alloc_unit,
-                            int64_t hint, std::vector<AllocExtent> *extents,
-                           int *count) {
+  int alloc_extents(uint64_t want_size, uint64_t alloc_unit,
+                    int64_t hint, std::vector<AllocExtent> *extents, int *count) {
     return alloc_extents(want_size, alloc_unit, want_size, hint, extents, count);
   }
 
index d2f4615f43daf09c1123785b3ae6b06a5ac6f6a7..52027951dd1f27d6dea22c806fe30430d5d7d531 100644 (file)
@@ -194,10 +194,6 @@ public:
   static int get_level(int64_t total_blocks);
   static int64_t get_level_factor(int level);
   virtual bool is_allocated(int64_t start_block, int64_t num_blocks) = 0;
-  virtual bool is_allocated(ExtentList *blocks, int64_t num_blocks, int blk_off) {
-    debug_assert(0);
-    return true;
-  }
   virtual bool is_exhausted() = 0;
   virtual bool child_check_n_lock(BitMapArea *child, int64_t required) {
       debug_assert(0);
@@ -364,6 +360,7 @@ public:
   }
 
   int64_t alloc_blocks(int64_t num_blocks, int64_t *start_block);
+  using BitMapArea::alloc_blocks_dis;
   int64_t alloc_blocks_dis(int64_t num_blocks,
         int64_t blk_off, ExtentList *block_list);  
   void set_blocks_used(int64_t start_block, int64_t num_blocks);