Lines Matching refs:i_auth_cap
711 WARN_ON(cap != ci->i_auth_cap); in ceph_add_cap()
753 if (!ci->i_auth_cap || in ceph_add_cap()
754 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
755 if (ci->i_auth_cap && in ceph_add_cap()
756 ci->i_auth_cap->session != cap->session) in ceph_add_cap()
758 ci->i_auth_cap = cap; in ceph_add_cap()
762 WARN_ON(ci->i_auth_cap == cap); in ceph_add_cap()
837 if (ci->i_auth_cap) { in __ceph_caps_issued()
838 cap = ci->i_auth_cap; in __ceph_caps_issued()
1095 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
1144 if (ci->i_auth_cap == cap) in __ceph_remove_cap()
1145 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1212 WARN_ON_ONCE(ci->i_auth_cap == cap && in ceph_remove_cap()
1432 if (cap == ci->i_auth_cap) { in __prep_cap()
1671 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1735 if (!ci->i_auth_cap) { in ceph_flush_snaps()
1740 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1794 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1807 struct ceph_mds_session *session = ci->i_auth_cap->session; in __ceph_mark_dirty_caps()
1819 ci->i_auth_cap); in __ceph_mark_dirty_caps()
2131 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
2139 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
2140 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
2178 if (cap == ci->i_auth_cap && in ceph_check_caps()
2194 if (cap == ci->i_auth_cap) { in ceph_check_caps()
2223 if (cap == ci->i_auth_cap && in ceph_check_caps()
2234 if (cap == ci->i_auth_cap && ci->i_dirty_caps) { in ceph_check_caps()
2290 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2291 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2433 if (ci->i_auth_cap) { in flush_mdlog_and_wait_inode_unsafe_requests()
2434 s = ci->i_auth_cap->session; in flush_mdlog_and_wait_inode_unsafe_requests()
2592 cap = ci->i_auth_cap; in __kick_flushing_caps()
2661 cap = ci->i_auth_cap; in ceph_early_kick_flushing_caps()
2715 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2735 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
2856 ret = ci->i_auth_cap ? -EFBIG : -EUCLEAN; in try_get_cap_refs()
2917 if (ci->i_auth_cap && in try_get_cap_refs()
2919 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2927 ci->i_auth_cap->mds); in try_get_cap_refs()
2988 if (ci->i_auth_cap && in check_max_size()
2989 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3387 WARN_ON_ONCE(ci->i_auth_cap); in ceph_put_wrbuffer_cap_refs()
3557 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
3661 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3712 } else if (cap == ci->i_auth_cap) { in handle_cap_grant()
3730 if (cap == ci->i_auth_cap && in handle_cap_grant()
3746 if (cap == ci->i_auth_cap) in handle_cap_grant()
3761 if (ci->i_auth_cap == cap) { in handle_cap_grant()
4130 if (cap == ci->i_auth_cap) { in handle_cap_export()
4131 ci->i_auth_cap = tcap; in handle_cap_export()
4139 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()
4145 ci->i_auth_cap == tcap) { in handle_cap_export()
4889 if (cap == ci->i_auth_cap && in ceph_encode_inode_release()
5020 is_auth = (cap == ci->i_auth_cap); in ceph_purge_inode_cap()