Lines Matching refs:mds
435 struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument
442 if (mds < cap->mds) in __get_cap_for_mds()
444 else if (mds > cap->mds) in __get_cap_for_mds()
452 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
457 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
475 if (new->mds < cap->mds) in __insert_cap_node()
477 else if (new->mds > cap->mds) in __insert_cap_node()
641 int mds = session->s_mds; in ceph_add_cap() local
652 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
659 cap->mds = mds; in ceph_add_cap()
747 ceph_cap_string(issued|cap->issued), seq, mds); in ceph_add_cap()
1692 int mds; in ceph_flush_snaps() local
1708 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1709 if (session && session->s_mds != mds) { in ceph_flush_snaps()
1717 session = __ceph_lookup_mds_session(mdsc, mds); in ceph_flush_snaps()
1977 int mds = -1; /* keep track of how far we've gone through i_caps list in ceph_check_caps() local
2088 if (mds >= cap->mds || in ceph_check_caps()
2102 cap->mds, cap, ceph_cap_string(cap_used), in ceph_check_caps()
2202 mds = cap->mds; /* remember mds, so we don't repeat */ in ceph_check_caps()
2855 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
3932 int mds = session->s_mds; in handle_cap_trunc() local
3955 __func__, inode, mds, seq, truncate_size, truncate_seq); in handle_cap_trunc()
3981 int mds = session->s_mds; in handle_cap_export() local
3987 target = le32_to_cpu(ph->mds); in handle_cap_export()
3994 inode, ci, mds, mseq, target); in handle_cap_export()
3998 cap = __get_cap_for_mds(ci, mds); in handle_cap_export()
4017 ceph_vinop(inode), mds, cap->seq, cap->mseq, in handle_cap_export()
4066 if (mds > target) { in handle_cap_export()
4109 int mds = session->s_mds; in handle_cap_import() local
4122 peer = le32_to_cpu(ph->mds); in handle_cap_import()
4129 inode, ci, mds, mseq, peer); in handle_cap_import()
4131 cap = __get_cap_for_mds(ci, mds); in handle_cap_import()
4165 ocap->mseq, mds, le32_to_cpu(ph->seq), in handle_cap_import()
4693 int mds, int drop, int unless, int force) in ceph_encode_inode_release() argument
4706 inode, mds, ceph_cap_string(used|dirty), ceph_cap_string(drop), in ceph_encode_inode_release()
4712 cap = __get_cap_for_mds(ci, mds); in ceph_encode_inode_release()
4782 int mds, int drop, int unless) in ceph_encode_dentry_release() argument
4799 if (di->lease_session && di->lease_session->s_mds == mds) in ceph_encode_dentry_release()
4803 ret = ceph_encode_inode_release(p, dir, mds, drop, unless, force); in ceph_encode_dentry_release()
4806 if (ret && di->lease_session && di->lease_session->s_mds == mds) { in ceph_encode_dentry_release()
4808 dentry, mds, (int)di->lease_seq); in ceph_encode_dentry_release()