Lines Matching refs:ceph_osdmap
87 struct ceph_osdmap { struct
140 static inline int ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists()
146 static inline int ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up()
152 static inline int ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down()
157 static inline bool ceph_osdmap_flag(struct ceph_osdmap *map, int flag) in ceph_osdmap_flag()
163 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
165 static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, in ceph_osd_addr()
195 extern struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end);
196 extern struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
197 struct ceph_osdmap *map,
199 extern void ceph_osdmap_destroy(struct ceph_osdmap *map);
207 extern int ceph_oloc_oid_to_pg(struct ceph_osdmap *osdmap,
212 extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap,
215 extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap,
218 extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map,
221 extern const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id);
222 extern int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name);