]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove dead _txc_release
authorSage Weil <sage@redhat.com>
Thu, 19 May 2016 12:52:23 +0000 (08:52 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:52 +0000 (11:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 382d3c4dcafcbd1ed1190467420f213b0f79d569..70be36420c253c9868202517e388478aec50f216 100644 (file)
@@ -3938,30 +3938,6 @@ BlueStore::TransContext *BlueStore::_txc_create(OpSequencer *osr)
   return txc;
 }
 
-void BlueStore::_txc_release(
-  TransContext *txc, CollectionRef& c, OnodeRef& o,
-  uint64_t offset, uint64_t length,
-  bool shared)
-{
-  if (shared) {
-    vector<bluestore_pextent_t> release;
-    if (!o->bnode)
-      o->bnode = c->get_bnode(o->oid.hobj.get_hash());
-    o->bnode->ref_map.put(offset, length, &release);
-    dout(10) << __func__ << " 0x" << std::hex << offset << "~0x" << length
-            << std::dec << " shared: ref_map now " << o->bnode->ref_map
-            << " releasing " << release << dendl;
-    txc->write_bnode(o->bnode);
-    for (auto& p : release) {
-      txc->released.insert(p.offset, p.length);
-    }
-  } else {
-    dout(10) << __func__ << " 0x" << std::hex << offset << "~0x" << length
-            << std::dec << dendl;
-    txc->released.insert(offset, length);
-  }
-}
-
 void BlueStore::_txc_state_proc(TransContext *txc)
 {
   while (true) {
index 654cf8eb2e9f1cf160568b8e968f1c7d81f0cfea..7a89d4f9608a93a39b30420114b757a04d8a88da 100644 (file)
@@ -938,9 +938,6 @@ private:
   void _dump_bnode(BnodeRef b, int log_level=30);
 
   TransContext *_txc_create(OpSequencer *osr);
-  void _txc_release(TransContext *txc, CollectionRef& c, OnodeRef& onode,
-                   uint64_t offset, uint64_t length,
-                   bool shared);
   void _txc_add_transaction(TransContext *txc, Transaction *t);
   void _txc_write_nodes(TransContext *txc, KeyValueDB::Transaction t);
   void _txc_state_proc(TransContext *txc);