]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: remove unused arg to _get_deferred_op()
authorSage Weil <sage@redhat.com>
Thu, 25 Jul 2019 14:13:25 +0000 (09:13 -0500)
committerSage Weil <sage@redhat.com>
Thu, 25 Jul 2019 14:13:25 +0000 (09:13 -0500)
Fixes: http://tracker.ceph.com/issues/40918
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 52ebc5004f6ef6b9bbc906840979cd222cdd0fe1..452f15062f85ce81495a14381697d6e05f22b49e 100644 (file)
@@ -10754,7 +10754,7 @@ void BlueStore::_kv_finalize_thread()
 }
 
 bluestore_deferred_op_t *BlueStore::_get_deferred_op(
-  TransContext *txc, OnodeRef o)
+  TransContext *txc)
 {
   if (!txc->deferred_txn) {
     txc->deferred_txn = new bluestore_deferred_transaction_t;
@@ -11659,7 +11659,7 @@ void BlueStore::_do_write_small(
            if (b_len <= prefer_deferred_size) {
              dout(20) << __func__ << " deferring small 0x" << std::hex
                       << b_len << std::dec << " unused write via deferred" << dendl;
-             bluestore_deferred_op_t *op = _get_deferred_op(txc, o);
+             bluestore_deferred_op_t *op = _get_deferred_op(txc);
              op->op = bluestore_deferred_op_t::OP_WRITE;
              b->get_blob().map(
                b_off, b_len,
@@ -11748,7 +11748,7 @@ void BlueStore::_do_write_small(
          }
 
          if (!g_conf()->bluestore_debug_omit_block_device_write) {
-           bluestore_deferred_op_t *op = _get_deferred_op(txc, o);
+           bluestore_deferred_op_t *op = _get_deferred_op(txc);
            op->op = bluestore_deferred_op_t::OP_WRITE;
            int r = b->get_blob().map(
              b_off, b_len,
@@ -12255,7 +12255,7 @@ int BlueStore::_do_alloc_write(
       if (l->length() <= prefer_deferred_size.load()) {
        dout(20) << __func__ << " deferring small 0x" << std::hex
                 << l->length() << std::dec << " write via deferred" << dendl;
-       bluestore_deferred_op_t *op = _get_deferred_op(txc, o);
+       bluestore_deferred_op_t *op = _get_deferred_op(txc);
        op->op = bluestore_deferred_op_t::OP_WRITE;
        int r = b->get_blob().map(
          b_off, l->length(),
index f711d0ceeacb2f7d8d55b5616a975064fb79ce3e..194bf2218f23e6199d52293c8f85eec4819dab4a 100644 (file)
@@ -2297,7 +2297,7 @@ private:
   void _kv_sync_thread();
   void _kv_finalize_thread();
 
-  bluestore_deferred_op_t *_get_deferred_op(TransContext *txc, OnodeRef o);
+  bluestore_deferred_op_t *_get_deferred_op(TransContext *txc);
   void _deferred_queue(TransContext *txc);
 public:
   void deferred_try_submit();