]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: drop unused ostream arg to Allocator::dump
authorSage Weil <sage@redhat.com>
Fri, 2 Dec 2016 16:00:38 +0000 (11:00 -0500)
committerSage Weil <sage@redhat.com>
Fri, 2 Dec 2016 16:00:38 +0000 (11:00 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
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 40262d5c7ed63d5bad60cc413465a4c91903d1ce..809debb2623df8d05611efaafcfaa15db898711f 100644 (file)
@@ -65,7 +65,7 @@ public:
   virtual void commit_start() = 0;
   virtual void commit_finish() = 0;
 
-  virtual void dump(std::ostream& out) = 0;
+  virtual void dump() = 0;
 
   virtual void init_add_free(uint64_t offset, uint64_t length) = 0;
   virtual void init_rm_free(uint64_t offset, uint64_t length) = 0;
index b0b7d036d1bacc82273b38e83121d11b07066055..4011d01654c4c4ef1e56beeea20d31ee32fc0d32 100644 (file)
@@ -252,7 +252,7 @@ uint64_t BitMapAllocator::get_free()
     m_block_size);
 }
 
-void BitMapAllocator::dump(ostream& out)
+void BitMapAllocator::dump()
 {
   std::lock_guard<std::mutex> l(m_lock);
   dout(30) << __func__ << " instance " << (uint64_t) this
index 629b4185a0b6126a4143dc0df6ac50d5a2b0940c..9fe061ad3dcf9a442d2ead98b54ca35dadd37002 100644 (file)
@@ -54,7 +54,7 @@ public:
 
   uint64_t get_free();
 
-  void dump(std::ostream& out);
+  void dump() override;
 
   void init_add_free(uint64_t offset, uint64_t length);
   void init_rm_free(uint64_t offset, uint64_t length);
index 780c6972eda4867862da904497af45b9d9e93ba3..fe57e17fa0562d20abc02f87481585be69505d63 100644 (file)
@@ -261,7 +261,7 @@ uint64_t StupidAllocator::get_free()
   return num_free;
 }
 
-void StupidAllocator::dump(ostream& out)
+void StupidAllocator::dump()
 {
   std::lock_guard<std::mutex> l(lock);
   for (unsigned bin = 0; bin < free.size(); ++bin) {
index 69ab47934589b46caf22f8670e9e8335654e602d..4f19197e7bde85a345313f8cfab5b3eeacc87bfb 100644 (file)
@@ -50,7 +50,7 @@ public:
 
   uint64_t get_free();
 
-  void dump(std::ostream& out);
+  void dump() override;
 
   void init_add_free(uint64_t offset, uint64_t length);
   void init_rm_free(uint64_t offset, uint64_t length);