From: haodong Date: Thu, 2 Jun 2016 10:32:03 +0000 (+0800) Subject: os/bluestore: no 'head_read' when check ondisk length. X-Git-Tag: v11.0.0~341^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9454%2Fhead;p=ceph.git os/bluestore: no 'head_read' when check ondisk length. Signed-off-by: Haodong Tang --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 2f1092ee618..5e7cff2eddc 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5564,7 +5564,7 @@ void BlueStore::_do_write_small( uint64_t tail_read = ROUND_UP_TO(b_off + b_len, chunk_size) - (b_off + b_len); if ((head_read || tail_read) && - b->get_ondisk_length() >= b_off + b_len + head_read + tail_read) { + (b->get_ondisk_length() >= b_off + b_len + tail_read)) { dout(20) << __func__ << " reading head 0x" << std::hex << head_read << " and tail 0x" << tail_read << std::dec << dendl; if (head_read) {