Lines Matching refs:mds

310 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds)  in __get_cap_for_mds()  argument
317 if (mds < cap->mds) in __get_cap_for_mds()
319 else if (mds > cap->mds) in __get_cap_for_mds()
327 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
332 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
343 int mds = -1; in __ceph_get_cap_mds() local
349 mds = cap->mds; in __ceph_get_cap_mds()
355 return mds; in __ceph_get_cap_mds()
361 int mds; in ceph_get_cap_mds() local
363 mds = __ceph_get_cap_mds(ceph_inode(inode)); in ceph_get_cap_mds()
365 return mds; in ceph_get_cap_mds()
381 if (new->mds < cap->mds) in __insert_cap_node()
383 else if (new->mds > cap->mds) in __insert_cap_node()
520 int mds = session->s_mds; in ceph_add_cap() local
533 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
540 cap->mds = mds; in ceph_add_cap()
620 ceph_cap_string(issued|cap->issued), seq, mds); in ceph_add_cap()
1234 int mds; in __ceph_flush_snaps() local
1275 mds = ci->i_auth_cap->session->s_mds; in __ceph_flush_snaps()
1278 if (session && session->s_mds != mds) { in __ceph_flush_snaps()
1290 session = __ceph_lookup_mds_session(mdsc, mds); in __ceph_flush_snaps()
1580 int mds = -1; /* keep track of how far we've gone through i_caps list in ceph_check_caps() local
1686 if (mds >= cap->mds || in ceph_check_caps()
1698 cap->mds, cap, ceph_cap_string(cap->issued), in ceph_check_caps()
1807 mds = cap->mds; /* remember mds, so we don't repeat */ in ceph_check_caps()
2406 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2761 int mds = session->s_mds; in handle_cap_grant() local
2778 inode, cap, mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
3157 int mds = session->s_mds; in handle_cap_trunc() local
3170 inode, mds, seq, truncate_size, truncate_seq); in handle_cap_trunc()
3201 int mds = session->s_mds; in handle_cap_export() local
3207 target = le32_to_cpu(ph->mds); in handle_cap_export()
3214 inode, ci, mds, mseq, target); in handle_cap_export()
3217 cap = __get_cap_for_mds(ci, mds); in handle_cap_export()
3273 if (mds > target) { in handle_cap_export()
3315 int mds = session->s_mds; in handle_cap_import() local
3328 peer = le32_to_cpu(ph->mds); in handle_cap_import()
3335 inode, ci, mds, mseq, peer); in handle_cap_import()
3339 cap = __get_cap_for_mds(ci, mds); in handle_cap_import()
3371 ocap->mseq, mds, le32_to_cpu(ph->seq), in handle_cap_import()
3402 int mds = session->s_mds; in ceph_handle_caps() local
3416 dout("handle_caps from mds%d\n", mds); in ceph_handle_caps()
3529 cap = __get_cap_for_mds(ceph_inode(inode), mds); in ceph_handle_caps()
3532 inode, ceph_ino(inode), ceph_snap(inode), mds); in ceph_handle_caps()
3667 int mds, int drop, int unless, int force) in ceph_encode_inode_release() argument
3680 inode, mds, ceph_cap_string(used|dirty), ceph_cap_string(drop), in ceph_encode_inode_release()
3686 cap = __get_cap_for_mds(ci, mds); in ceph_encode_inode_release()
3733 int mds, int drop, int unless) in ceph_encode_dentry_release() argument
3748 if (di->lease_session && di->lease_session->s_mds == mds) in ceph_encode_dentry_release()
3752 ret = ceph_encode_inode_release(p, dir, mds, drop, unless, force); in ceph_encode_dentry_release()
3755 if (ret && di->lease_session && di->lease_session->s_mds == mds) { in ceph_encode_dentry_release()
3757 dentry, mds, (int)di->lease_seq); in ceph_encode_dentry_release()