From: Sage Weil Date: Mon, 28 Aug 2017 21:11:20 +0000 (-0400) Subject: osd/OSDMap: remove unused static X-Git-Tag: v13.0.1~1005^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ac23d88b4e91847bad4c1639ef42356bb219bf5;p=ceph.git osd/OSDMap: remove unused static Signed-off-by: Sage Weil --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 0341927125f..8314d3acb46 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -1162,19 +1162,6 @@ void OSDMap::count_full_nearfull_osds(int *full, int *backfill, int *nearfull) c } } -static bool get_osd_utilization( - const mempool::pgmap::unordered_map &osd_stat, - int id, int64_t* kb, int64_t* kb_used, int64_t* kb_avail) -{ - auto p = osd_stat.find(id); - if (p == osd_stat.end()) - return false; - *kb = p->second.kb; - *kb_used = p->second.kb_used; - *kb_avail = p->second.kb_avail; - return *kb > 0; -} - void OSDMap::get_full_osd_counts(set *full, set *backfill, set *nearfull) const {