Lines Matching refs:state
14 char *ceph_osdmap_state_str(char *str, int len, u32 state)
19 if ((state & CEPH_OSD_EXISTS) && (state & CEPH_OSD_UP))
21 else if (state & CEPH_OSD_EXISTS)
23 else if (state & CEPH_OSD_UP)
1183 u32 *state;
1193 state = ceph_kvmalloc(array_size(max, sizeof(*state)), GFP_NOFS);
1196 if (!state || !weight || !addr) {
1197 kvfree(state);
1205 memcpy(state, map->osd_state, to_copy * sizeof(*state));
1213 map->osd_state = state;