]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: _do_write_small fix head_pad 43757/head
authordheart <dheart_joe@163.com>
Tue, 12 Oct 2021 08:46:34 +0000 (16:46 +0800)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 1 Nov 2021 13:48:06 +0000 (16:48 +0300)
Signed-off-by: dheart <dheart_joe@163.com>
(cherry picked from commit ed8dd300a88173b1e5efafb6bb061a15ea296c29)

src/os/bluestore/BlueStore.cc

index 1da41d99a08a04191b36b284e4b32b3d1883d3c9..47c6f92d27100753d770a69c1dd0095226dff52f 100644 (file)
@@ -13471,7 +13471,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)) {