Lines Matching refs:map
188 static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists() argument
190 return osd >= 0 && osd < map->max_osd && in ceph_osd_exists()
191 (map->osd_state[osd] & CEPH_OSD_EXISTS); in ceph_osd_exists()
194 static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up() argument
196 return ceph_osd_exists(map, osd) && in ceph_osd_is_up()
197 (map->osd_state[osd] & CEPH_OSD_UP); in ceph_osd_is_up()
200 static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down() argument
202 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down()
206 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
208 static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, in ceph_osd_addr() argument
211 if (osd >= map->max_osd) in ceph_osd_addr()
213 return &map->osd_addr[osd]; in ceph_osd_addr()
243 struct ceph_osdmap *map);
244 extern void ceph_osdmap_destroy(struct ceph_osdmap *map);
302 extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map,
305 extern const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id);
306 extern int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name);