From 67e3506731492735bce910909bbe60db4a1fe701 Mon Sep 17 00:00:00 2001 From: dheart Date: Tue, 12 Oct 2021 16:46:34 +0800 Subject: [PATCH] os/bluestore: _do_write_small fix head_pad Signed-off-by: dheart (cherry picked from commit ed8dd300a88173b1e5efafb6bb061a15ea296c29) --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 1da41d99a08..47c6f92d271 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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)) { -- 2.47.3