osd: remove _ookup_lock_pg_with_map_lock_held()

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-01-04 12:53:39 -06:00
parent 60ea5e87b6
commit 26938d54d4
2 changed files with 0 additions and 9 deletions

View File

@ -3935,14 +3935,6 @@ PG *OSD::lookup_lock_pg(spg_t pgid)
return _lookup_lock_pg(pgid);
}
PG *OSD::_lookup_lock_pg_with_map_lock_held(spg_t pgid)
{
assert(pg_map.count(pgid));
PG *pg = pg_map[pgid];
pg->lock();
return pg;
}
void OSD::load_pgs()
{
assert(osd_lock.is_locked());

View File

@ -1864,7 +1864,6 @@ protected:
PGRecoveryStats pg_recovery_stats;
PGRef _lookup_pg(spg_t pgid);
PG *_lookup_lock_pg_with_map_lock_held(spg_t pgid);
PG *_lookup_lock_pg(spg_t pgid);
public: