Lines Matching full:osd
11 * The osd map describes the current membership of the osd cluster and
161 int osd; member
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);
222 int osd) 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()