Lines Matching refs:map
201 static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists() argument
203 return osd >= 0 && osd < map->max_osd && in ceph_osd_exists()
204 (map->osd_state[osd] & CEPH_OSD_EXISTS); in ceph_osd_exists()
207 static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up() argument
209 return ceph_osd_exists(map, osd) && in ceph_osd_is_up()
210 (map->osd_state[osd] & CEPH_OSD_UP); in ceph_osd_is_up()
213 static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down() argument
215 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down()
219 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
221 static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, in ceph_osd_addr() argument
224 if (osd >= map->max_osd) in ceph_osd_addr()
226 return &map->osd_addr[osd]; in ceph_osd_addr()
256 struct ceph_osdmap *map);
257 extern void ceph_osdmap_destroy(struct ceph_osdmap *map);
333 extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map,
335 extern const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id);
336 extern int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name);
337 u64 ceph_pg_pool_flags(struct ceph_osdmap *map, u64 id);