Lines Matching refs:mds
413 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument
420 if (mds < cap->mds) in __get_cap_for_mds()
422 else if (mds > cap->mds) in __get_cap_for_mds()
430 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
435 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
446 int mds = -1; in __ceph_get_cap_mds() local
452 mds = cap->mds; in __ceph_get_cap_mds()
458 return mds; in __ceph_get_cap_mds()
464 int mds; in ceph_get_cap_mds() local
466 mds = __ceph_get_cap_mds(ceph_inode(inode)); in ceph_get_cap_mds()
468 return mds; in ceph_get_cap_mds()
484 if (new->mds < cap->mds) in __insert_cap_node()
486 else if (new->mds > cap->mds) in __insert_cap_node()
624 int mds = session->s_mds; in ceph_add_cap() local
637 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
644 cap->mds = mds; in ceph_add_cap()
738 ceph_cap_string(issued|cap->issued), seq, mds); in ceph_add_cap()
1542 int mds; in ceph_flush_snaps() local
1558 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1559 if (session && session->s_mds != mds) { in ceph_flush_snaps()
1568 session = __ceph_lookup_mds_session(mdsc, mds); in ceph_flush_snaps()
1819 int mds = -1; /* keep track of how far we've gone through i_caps list in ceph_check_caps() local
1915 if (mds >= cap->mds || in ceph_check_caps()
1927 cap->mds, cap, ceph_cap_string(cap_used), in ceph_check_caps()
2056 mds = cap->mds; /* remember mds, so we don't repeat */ in ceph_check_caps()
2606 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
3476 int mds = session->s_mds; in handle_cap_trunc() local
3489 inode, mds, seq, truncate_size, truncate_seq); in handle_cap_trunc()
3518 int mds = session->s_mds; in handle_cap_export() local
3524 target = le32_to_cpu(ph->mds); in handle_cap_export()
3531 inode, ci, mds, mseq, target); in handle_cap_export()
3534 cap = __get_cap_for_mds(ci, mds); in handle_cap_export()
3555 ceph_vinop(inode), mds, cap->seq, cap->mseq, in handle_cap_export()
3610 if (mds > target) { in handle_cap_export()
3652 int mds = session->s_mds; in handle_cap_import() local
3665 peer = le32_to_cpu(ph->mds); in handle_cap_import()
3672 inode, ci, mds, mseq, peer); in handle_cap_import()
3676 cap = __get_cap_for_mds(ci, mds); in handle_cap_import()
3709 ocap->mseq, mds, le32_to_cpu(ph->seq), in handle_cap_import()
4092 int mds, int drop, int unless, int force) in ceph_encode_inode_release() argument
4105 inode, mds, ceph_cap_string(used|dirty), ceph_cap_string(drop), in ceph_encode_inode_release()
4111 cap = __get_cap_for_mds(ci, mds); in ceph_encode_inode_release()
4168 int mds, int drop, int unless) in ceph_encode_dentry_release() argument
4183 if (di->lease_session && di->lease_session->s_mds == mds) in ceph_encode_dentry_release()
4191 ret = ceph_encode_inode_release(p, dir, mds, drop, unless, force); in ceph_encode_dentry_release()
4195 if (ret && di->lease_session && di->lease_session->s_mds == mds) { in ceph_encode_dentry_release()
4197 dentry, mds, (int)di->lease_seq); in ceph_encode_dentry_release()