mirror of
https://github.com/ceph/ceph
synced 2024-12-29 06:52:35 +00:00
osd: (loosely) mark cached map bl buffers as osd_mapbl
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
23a186c7a8
commit
1965860810
@ -146,6 +146,7 @@ namespace mempool {
|
||||
f(buffer_anon) \
|
||||
f(buffer_meta) \
|
||||
f(osd) \
|
||||
f(osd_mapbl) \
|
||||
f(osdmap) \
|
||||
f(osdmap_mapping)
|
||||
|
||||
|
@ -1471,12 +1471,14 @@ bool OSDService::get_inc_map_bl(epoch_t e, bufferlist& bl)
|
||||
void OSDService::_add_map_bl(epoch_t e, bufferlist& bl)
|
||||
{
|
||||
dout(10) << "add_map_bl " << e << " " << bl.length() << " bytes" << dendl;
|
||||
bl.try_assign_to_mempool(mempool::mempool_osd_mapbl);
|
||||
map_bl_cache.add(e, bl);
|
||||
}
|
||||
|
||||
void OSDService::_add_map_inc_bl(epoch_t e, bufferlist& bl)
|
||||
{
|
||||
dout(10) << "add_map_inc_bl " << e << " " << bl.length() << " bytes" << dendl;
|
||||
bl.try_assign_to_mempool(mempool::mempool_osd_mapbl);
|
||||
map_bl_inc_cache.add(e, bl);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user