mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
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:
commit
ddb3f29b8e
@ -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);
|
||||
});
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user