mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #8289 from majianpeng/bluestore-zero-clear-tail-cache
os/bluestore/BlueStore: For _zero, check whether clear tail_bl. Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
a99fae9dc1
@ -5780,6 +5780,11 @@ int BlueStore::_do_zero(TransContext *txc,
|
||||
++bp;
|
||||
}
|
||||
|
||||
if (o->tail_bl.length() && offset + length > o->tail_offset) {
|
||||
dout(20) << __func__ << " clearing cached tail" << dendl;
|
||||
o->clear_tail();
|
||||
}
|
||||
|
||||
if (offset + length > o->onode.size) {
|
||||
o->onode.size = offset + length;
|
||||
dout(20) << __func__ << " extending size to " << offset + length
|
||||
|
Loading…
Reference in New Issue
Block a user