From c91adc28ebf3afc2e6972a6a32bf13654ab9ff53 Mon Sep 17 00:00:00 2001 From: wangzhengyong Date: Fri, 20 Jan 2017 09:25:37 +0800 Subject: [PATCH] os/bluestore: remove no use parameter in bluestore_blob_t::map_bl Signed-off-by: wangzhengyong --- src/os/bluestore/BlueStore.cc | 4 ++-- src/os/bluestore/bluestore_types.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index e8ff586e6c5..0d23a1d1122 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7691,7 +7691,7 @@ void BlueStore::_do_write_small( if (!g_conf->bluestore_debug_omit_block_device_write) { b->get_blob().map_bl( b_off, padded, - [&](uint64_t offset, uint64_t length, bufferlist& t) { + [&](uint64_t offset, bufferlist& t) { bdev->aio_write(offset, t, &txc->ioc, wctx->buffered); }); @@ -8017,7 +8017,7 @@ int BlueStore::_do_alloc_write( if (!g_conf->bluestore_debug_omit_block_device_write) { b->get_blob().map_bl( b_off, *l, - [&](uint64_t offset, uint64_t length, bufferlist& t) { + [&](uint64_t offset, bufferlist& t) { bdev->aio_write(offset, t, &txc->ioc, false); }); } diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 20cda85d052..6d4392f6a6d 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -527,7 +527,7 @@ struct bluestore_blob_t { } void map_bl(uint64_t x_off, bufferlist& bl, - std::function f) const { + std::function f) const { auto p = extents.begin(); assert(p != extents.end()); while (x_off >= p->length) { @@ -542,7 +542,7 @@ struct bluestore_blob_t { uint64_t l = MIN(p->length - x_off, x_len); bufferlist t; it.copy(l, t); - f(p->offset + x_off, l, t); + f(p->offset + x_off, t); x_off = 0; x_len -= l; ++p; -- 2.47.3