From: Sage Weil Date: Thu, 19 May 2016 12:52:23 +0000 (-0400) Subject: os/bluestore: remove dead _txc_release X-Git-Tag: v11.0.0~359^2~55 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7dc9a8b905771a822588bc4bb161b1996fcf212;p=ceph.git os/bluestore: remove dead _txc_release Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 382d3c4dcafc..70be36420c25 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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 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) { diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 654cf8eb2e9f..7a89d4f9608a 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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);