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);
});
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);
});
}
}
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) {
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;