From: dheart Date: Tue, 12 Oct 2021 08:46:34 +0000 (+0800) Subject: os/bluestore: _do_write_small fix head_pad X-Git-Tag: v16.2.7~44^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4411f0638eda2208045bc5b723da7a593e96f448;p=ceph.git os/bluestore: _do_write_small fix head_pad Signed-off-by: dheart (cherry picked from commit ed8dd300a88173b1e5efafb6bb061a15ea296c29) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 232e44d949d..b40b447bc92 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -13366,7 +13366,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)) {