Lines Matching refs:m_info
26 if (1 == m->m_num_mds && m->m_info[0].state > 0) in ceph_mdsmap_get_random_mds()
31 if (m->m_info[i].state > 0) in ceph_mdsmap_get_random_mds()
40 while (m->m_info[i].state <= 0) in ceph_mdsmap_get_random_mds()
141 m->m_info = kcalloc(m->m_num_mds, sizeof(*m->m_info), GFP_NOFS); in ceph_mdsmap_decode()
142 if (!m->m_info) in ceph_mdsmap_decode()
217 void *new_m_info = krealloc(m->m_info, in ceph_mdsmap_decode()
218 new_num * sizeof(*m->m_info), in ceph_mdsmap_decode()
222 m->m_info = new_m_info; in ceph_mdsmap_decode()
226 info = &m->m_info[mds]; in ceph_mdsmap_decode()
248 if (i == 0 || m->m_info[i-1].state > 0) in ceph_mdsmap_decode()
295 if (m->m_info[mds].laggy) in ceph_mdsmap_decode()
302 void *new_m_info = krealloc(m->m_info, in ceph_mdsmap_decode()
303 n * sizeof(*m->m_info), in ceph_mdsmap_decode()
307 m->m_info = new_m_info; in ceph_mdsmap_decode()
376 kfree(m->m_info[i].export_targets); in ceph_mdsmap_destroy()
377 kfree(m->m_info); in ceph_mdsmap_destroy()
392 if (m->m_info[i].state == CEPH_MDS_STATE_ACTIVE) in ceph_mdsmap_is_cluster_available()