mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
os/bluestore: clean up Cache::trim
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
94648e2bd5
commit
b55255d23e
@ -480,13 +480,11 @@ void BlueStore::Cache::trim(uint64_t onode_max, uint64_t buffer_max)
|
||||
}
|
||||
dout(20) << __func__ << " rm " << *b << dendl;
|
||||
b->space->_rm_buffer(p);
|
||||
} if (i != buffer_lru.begin()) {
|
||||
--i;
|
||||
continue;
|
||||
} else {
|
||||
if (i != buffer_lru.begin()) {
|
||||
--i;
|
||||
continue;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user