Lines Matching refs:mdsmap
466 if (mds >= mdsc->mdsmap->m_num_mds) in register_session()
524 ceph_mdsmap_get_addr(mdsc->mdsmap, mds)); in register_session()
756 ceph_mdsmap_get_state(mdsc->mdsmap, req->r_resend_mds) > 0)) { in __choose_mds()
835 if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >= in __choose_mds()
850 if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >= in __choose_mds()
878 mds = ceph_mdsmap_get_random_mds(mdsc->mdsmap); in __choose_mds()
1021 mstate = ceph_mdsmap_get_state(mdsc->mdsmap, mds); in __open_session()
1079 if (mds >= mdsc->mdsmap->m_num_mds) in __open_export_target_sessions()
1082 mi = &mdsc->mdsmap->m_info[mds]; in __open_export_target_sessions()
1419 state = ceph_mdsmap_get_state(mdsc->mdsmap, session->s_mds); in send_renew_caps()
1466 mdsc->mdsmap->m_session_timeout*HZ; in renewed_caps()
2135 head->mdsmap_epoch = cpu_to_le32(mdsc->mdsmap->m_epoch); in create_request_message()
2338 if (mdsc->mdsmap->m_epoch == 0) { in __do_request()
2345 !ceph_mdsmap_is_cluster_available(mdsc->mdsmap)) { in __do_request()
2355 ceph_mdsmap_get_state(mdsc->mdsmap, mds) < CEPH_MDS_STATE_ACTIVE) { in __do_request()
2840 session->s_ttl = jiffies + HZ*mdsc->mdsmap->m_session_autoclose; in handle_session()
3217 ceph_mdsmap_get_addr(mdsc->mdsmap, mds)); in send_mds_reconnect()
3622 renew_interval = mdsc->mdsmap->m_session_timeout >> 2; in delayed_work()
3682 mdsc->mdsmap = kzalloc(sizeof(*mdsc->mdsmap), GFP_NOFS); in ceph_mdsc_init()
3683 if (!mdsc->mdsmap) { in ceph_mdsc_init()
3966 if (mdsc->mdsmap) in ceph_mdsc_stop()
3967 ceph_mdsmap_destroy(mdsc->mdsmap); in ceph_mdsc_stop()
4090 if (mdsc->mdsmap && epoch <= mdsc->mdsmap->m_epoch) { in ceph_mdsc_handle_mdsmap()
4092 epoch, mdsc->mdsmap->m_epoch); in ceph_mdsc_handle_mdsmap()
4104 if (mdsc->mdsmap) { in ceph_mdsc_handle_mdsmap()
4105 oldmap = mdsc->mdsmap; in ceph_mdsc_handle_mdsmap()
4106 mdsc->mdsmap = newmap; in ceph_mdsc_handle_mdsmap()
4110 mdsc->mdsmap = newmap; /* first mds map */ in ceph_mdsc_handle_mdsmap()
4112 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size, in ceph_mdsc_handle_mdsmap()
4117 mdsc->mdsmap->m_epoch); in ceph_mdsc_handle_mdsmap()