]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FreelistManager: change return type of allocate() and release() to void 8599/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 25 Apr 2016 04:53:06 +0000 (00:53 -0400)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 25 Apr 2016 04:57:53 +0000 (00:57 -0400)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/os/bluestore/FreelistManager.cc
src/os/bluestore/FreelistManager.h

index 0115767884ea4390755dfee29d7c77e7bedb5ef9..9b0d966ea117e18c26c6cc961507941502ce4725 100644 (file)
@@ -114,7 +114,7 @@ void FreelistManager::_audit()
   }
 }
 
-int FreelistManager::allocate(
+void FreelistManager::allocate(
   uint64_t offset, uint64_t length,
   KeyValueDB::Transaction txn)
 {
@@ -188,10 +188,9 @@ int FreelistManager::allocate(
   }
   if (g_conf->bluestore_debug_freelist)
     _audit();
-  return 0;
 }
 
-int FreelistManager::release(
+void FreelistManager::release(
   uint64_t offset, uint64_t length,
   KeyValueDB::Transaction txn)
 {
@@ -260,5 +259,4 @@ int FreelistManager::release(
 
   if (g_conf->bluestore_debug_freelist)
     _audit();
-  return 0;
 }
index 1694f530cf5a6bc1db5a89b9cebdad8f324f46fc..4e7255e887da53a4b54a5aea0cfdef05ce9eb69d 100644 (file)
@@ -44,10 +44,10 @@ public:
     return kv_free;
   }
 
-  int allocate(
+  void allocate(
     uint64_t offset, uint64_t length,
     KeyValueDB::Transaction txn);
-  int release(
+  void release(
     uint64_t offset, uint64_t length,
     KeyValueDB::Transaction txn);
 };