]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove no use parameter in bluestore_blob_t::map_bl 13013/head
authorwangzhengyong <wangzhengyong@cmss.chinamobile.com>
Fri, 20 Jan 2017 01:25:37 +0000 (09:25 +0800)
committerwangzhengyong <wangzhengyong@cmss.chinamobile.com>
Fri, 20 Jan 2017 02:08:58 +0000 (10:08 +0800)
Signed-off-by: wangzhengyong <wangzhengyong@cmss.chinamobile.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.h

index e8ff586e6c5336bd3aabd47623703f2355501805..0d23a1d11228549f01b035066b08e5d081268aef 100644 (file)
@@ -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);
         });
     }
index 20cda85d052893a03f467bb0a0005f3503e4eb9d..6d4392f6a6dc9404bbf1e59154de86fb2fed654d 100644 (file)
@@ -527,7 +527,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) {
@@ -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;