Lines Matching refs:osd
148 int osd; member
189 static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists() argument
191 return osd >= 0 && osd < map->max_osd && in ceph_osd_exists()
192 (map->osd_state[osd] & CEPH_OSD_EXISTS); in ceph_osd_exists()
195 static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up() argument
197 return ceph_osd_exists(map, osd) && in ceph_osd_is_up()
198 (map->osd_state[osd] & CEPH_OSD_UP); in ceph_osd_is_up()
201 static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down() argument
203 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down()
207 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
210 int osd) in ceph_osd_addr() argument
212 if (osd >= map->max_osd) in ceph_osd_addr()
214 return &map->osd_addr[osd]; in ceph_osd_addr()