Lines Matching refs:osd
82 int osd; member
140 static inline int ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists() argument
142 return osd >= 0 && osd < map->max_osd && in ceph_osd_exists()
143 (map->osd_state[osd] & CEPH_OSD_EXISTS); in ceph_osd_exists()
146 static inline int ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up() argument
148 return ceph_osd_exists(map, osd) && in ceph_osd_is_up()
149 (map->osd_state[osd] & CEPH_OSD_UP); in ceph_osd_is_up()
152 static inline int ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down() argument
154 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down()
163 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
166 int osd) in ceph_osd_addr() argument
168 if (osd >= map->max_osd) in ceph_osd_addr()
170 return &map->osd_addr[osd]; in ceph_osd_addr()