]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: _do_write_small fix head_pad 43498/head
authordheart <dheart_joe@163.com>
Tue, 12 Oct 2021 08:46:34 +0000 (16:46 +0800)
committerdheart <dheart_joe@163.com>
Tue, 12 Oct 2021 08:46:34 +0000 (16:46 +0800)
Signed-off-by: dheart <dheart_joe@163.com>
src/os/bluestore/BlueStore.cc

index c7406b995424b6cd428738b28747fa26cd867314..9c8aa6d39814b89452d75aeb5ac038125124203a 100644 (file)
@@ -13654,7 +13654,7 @@ void BlueStore::_do_write_small(
                                    end_offs - offset + head_pad + tail_pad);
        }
        if (head_pad &&
-           o->extent_map.has_any_lextents(offset - head_pad, chunk_size)) {
+           o->extent_map.has_any_lextents(offset - head_pad, head_pad)) {
          head_pad = 0;
        }
        if (tail_pad && o->extent_map.has_any_lextents(end_offs, tail_pad)) {