Lines Matching refs:mdsmap
715 if (mds >= mdsc->mdsmap->possible_max_rank) in register_session()
776 ceph_mdsmap_get_addr(mdsc->mdsmap, mds)); in register_session()
1049 ceph_mdsmap_get_state(mdsc->mdsmap, req->r_resend_mds) > 0)) { in __choose_mds()
1126 if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >= in __choose_mds()
1128 !ceph_mdsmap_is_laggy(mdsc->mdsmap, mds)) in __choose_mds()
1141 if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >= in __choose_mds()
1143 if (!ceph_mdsmap_is_laggy(mdsc->mdsmap, in __choose_mds()
1178 mds = ceph_mdsmap_get_random_mds(mdsc->mdsmap); in __choose_mds()
1401 mstate = ceph_mdsmap_get_state(mdsc->mdsmap, mds); in __open_session()
1463 if (mds >= mdsc->mdsmap->possible_max_rank) in __open_export_target_sessions()
1466 mi = &mdsc->mdsmap->m_info[mds]; in __open_export_target_sessions()
1855 state = ceph_mdsmap_get_state(mdsc->mdsmap, session->s_mds); in send_renew_caps()
1902 mdsc->mdsmap->m_session_timeout*HZ; in renewed_caps()
2611 head->mdsmap_epoch = cpu_to_le32(mdsc->mdsmap->m_epoch); in create_request_message()
2843 if (mdsc->mdsmap->m_epoch == 0) { in __do_request()
2850 !ceph_mdsmap_is_cluster_available(mdsc->mdsmap)) { in __do_request()
2860 ceph_mdsmap_get_state(mdsc->mdsmap, mds) < CEPH_MDS_STATE_ACTIVE) { in __do_request()
3441 session->s_ttl = jiffies + HZ*mdsc->mdsmap->m_session_autoclose; in handle_session()
4029 ceph_mdsmap_get_addr(mdsc->mdsmap, mds)); in send_mds_reconnect()
4518 renew_interval = mdsc->mdsmap->m_session_timeout >> 2; in delayed_work()
4572 mdsc->mdsmap = kzalloc(sizeof(*mdsc->mdsmap), GFP_NOFS); in ceph_mdsc_init()
4573 if (!mdsc->mdsmap) { in ceph_mdsc_init()
4637 kfree(mdsc->mdsmap); in ceph_mdsc_init()
4912 if (mdsc->mdsmap) in ceph_mdsc_stop()
4913 ceph_mdsmap_destroy(mdsc->mdsmap); in ceph_mdsc_stop()
5038 if (mdsc->mdsmap && epoch <= mdsc->mdsmap->m_epoch) { in ceph_mdsc_handle_mdsmap()
5040 epoch, mdsc->mdsmap->m_epoch); in ceph_mdsc_handle_mdsmap()
5052 if (mdsc->mdsmap) { in ceph_mdsc_handle_mdsmap()
5053 oldmap = mdsc->mdsmap; in ceph_mdsc_handle_mdsmap()
5054 mdsc->mdsmap = newmap; in ceph_mdsc_handle_mdsmap()
5058 mdsc->mdsmap = newmap; /* first mds map */ in ceph_mdsc_handle_mdsmap()
5060 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size, in ceph_mdsc_handle_mdsmap()
5065 mdsc->mdsmap->m_epoch); in ceph_mdsc_handle_mdsmap()