Lines Matching refs:mds

433 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds)  in __get_cap_for_mds()  argument
440 if (mds < cap->mds) in __get_cap_for_mds()
442 else if (mds > cap->mds) in __get_cap_for_mds()
450 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
455 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
473 if (new->mds < cap->mds) in __insert_cap_node()
475 else if (new->mds > cap->mds) in __insert_cap_node()
639 int mds = session->s_mds; in ceph_add_cap() local
650 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
657 cap->mds = mds; in ceph_add_cap()
745 ceph_cap_string(issued|cap->issued), seq, mds); in ceph_add_cap()
1629 int mds; in ceph_flush_snaps() local
1645 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1646 if (session && session->s_mds != mds) { in ceph_flush_snaps()
1654 session = __ceph_lookup_mds_session(mdsc, mds); in ceph_flush_snaps()
1910 int mds = -1; /* keep track of how far we've gone through i_caps list in ceph_check_caps() local
2022 if (mds >= cap->mds || in ceph_check_caps()
2036 cap->mds, cap, ceph_cap_string(cap_used), in ceph_check_caps()
2136 mds = cap->mds; /* remember mds, so we don't repeat */ in ceph_check_caps()
2789 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
3824 int mds = session->s_mds; in handle_cap_trunc() local
3839 inode, mds, seq, truncate_size, truncate_seq); in handle_cap_trunc()
3865 int mds = session->s_mds; in handle_cap_export() local
3871 target = le32_to_cpu(ph->mds); in handle_cap_export()
3878 inode, ci, mds, mseq, target); in handle_cap_export()
3882 cap = __get_cap_for_mds(ci, mds); in handle_cap_export()
3901 ceph_vinop(inode), mds, cap->seq, cap->mseq, in handle_cap_export()
3950 if (mds > target) { in handle_cap_export()
3993 int mds = session->s_mds; in handle_cap_import() local
4006 peer = le32_to_cpu(ph->mds); in handle_cap_import()
4013 inode, ci, mds, mseq, peer); in handle_cap_import()
4015 cap = __get_cap_for_mds(ci, mds); in handle_cap_import()
4049 ocap->mseq, mds, le32_to_cpu(ph->seq), in handle_cap_import()
4492 int mds, int drop, int unless, int force) in ceph_encode_inode_release() argument
4505 inode, mds, ceph_cap_string(used|dirty), ceph_cap_string(drop), in ceph_encode_inode_release()
4511 cap = __get_cap_for_mds(ci, mds); in ceph_encode_inode_release()
4569 int mds, int drop, int unless) in ceph_encode_dentry_release() argument
4584 if (di->lease_session && di->lease_session->s_mds == mds) in ceph_encode_dentry_release()
4592 ret = ceph_encode_inode_release(p, dir, mds, drop, unless, force); in ceph_encode_dentry_release()
4596 if (ret && di->lease_session && di->lease_session->s_mds == mds) { in ceph_encode_dentry_release()
4598 dentry, mds, (int)di->lease_seq); in ceph_encode_dentry_release()