Lines Matching refs:osd_state
977 kfree(map->osd_state); in ceph_osdmap_destroy()
997 state = krealloc(map->osd_state, max*sizeof(*state), GFP_NOFS); in osdmap_set_max_osd()
1000 map->osd_state = state; in osdmap_set_max_osd()
1013 map->osd_state[i] = 0; in osdmap_set_max_osd()
1503 map->osd_state[i] = ceph_decode_32(p); in osdmap_decode()
1506 map->osd_state[i] = ceph_decode_8(p); in osdmap_decode()
1655 map->osd_state[osd] |= CEPH_OSD_EXISTS; in decode_new_up_state_weight()
1656 map->osd_state[osd] &= ~(CEPH_OSD_AUTOOUT | in decode_new_up_state_weight()
1678 if ((map->osd_state[osd] & CEPH_OSD_UP) && in decode_new_up_state_weight()
1681 if ((map->osd_state[osd] & CEPH_OSD_EXISTS) && in decode_new_up_state_weight()
1689 map->osd_state[osd] = 0; in decode_new_up_state_weight()
1691 map->osd_state[osd] ^= xorstate; in decode_new_up_state_weight()
1707 map->osd_state[osd] |= CEPH_OSD_EXISTS | CEPH_OSD_UP; in decode_new_up_state_weight()