Merge pull request #13013 from wangzhengyong/master

os/bluestore: remove no use parameter in bluestore_blob_t::map_bl

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-02-01 08:55:22 -06:00 committed by GitHub
commit ddb3f29b8e
2 changed files with 4 additions and 4 deletions

View File

@ -7880,7 +7880,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);
});
@ -8204,7 +8204,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);
});
}

View File

@ -528,7 +528,7 @@ struct bluestore_blob_t {
}
void map_bl(uint64_t x_off,
bufferlist& bl,
std::function<void(uint64_t,uint64_t,bufferlist&)> f) const {
std::function<void(uint64_t,bufferlist&)> f) const {
auto p = extents.begin();
assert(p != extents.end());
while (x_off >= p->length) {
@ -543,7 +543,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;