Lines Matching refs:map
11 * The osd map describes the current membership of the osd cluster and
17 * Each map version is identified by an epoch, which increases monotonically.
19 * The map can be updated either via an incremental map (diff) describing
20 * the change between two successive epochs, or as a fully encoded map.
98 * arbitrarily long (~PAGE_SIZE). It's done once during rbd map; all
194 /* the CRUSH map specifies the mapping of placement groups to
201 static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd)
203 return osd >= 0 && osd < map->max_osd &&
204 (map->osd_state[osd] & CEPH_OSD_EXISTS);
207 static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd)
209 return ceph_osd_exists(map, osd) &&
210 (map->osd_state[osd] & CEPH_OSD_UP);
213 static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd)
215 return !ceph_osd_is_up(map, osd);
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,
224 if (osd >= map->max_osd)
226 return &map->osd_addr[osd];
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);