Lines Matching refs:mds
44 * choose a random mds that is "up" (i.e. has a state > 0), or -1.
48 int mds;
50 mds = __mdsmap_get_random_mds(m, false);
51 if (mds == m->possible_max_rank || mds == -1)
52 mds = __mdsmap_get_random_mds(m, true);
54 return mds == m->possible_max_rank ? -1 : mds;
164 * receive a new mds map with n_num_mds == 1 and the active MDS(1),
165 * and the mds rank >= m_num_active_mds.
177 s32 mds, inc, state;
202 namelen = ceph_decode_32(p); /* skip mds name */
205 ceph_decode_32_safe(p, end, mds, bad);
236 dout("mdsmap_decode %d/%d %lld mds%d.%d %s %s%s\n",
237 i+1, n, global_id, mds, inc,
242 if (mds < 0 || mds >= m->possible_max_rank) {
243 pr_warn("mdsmap_decode got incorrect mds(%d)\n", mds);
253 info = &m->m_info[mds];
312 s32 mds = ceph_decode_32(p);
313 if (mds >= 0 && mds < m->possible_max_rank) {
314 if (m->m_info[mds].laggy)