Lines Matching refs:i_auth_cap

691 			WARN_ON(cap != ci->i_auth_cap);  in ceph_add_cap()
733 if (!ci->i_auth_cap || in ceph_add_cap()
734 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
735 if (ci->i_auth_cap && in ceph_add_cap()
736 ci->i_auth_cap->session != cap->session) in ceph_add_cap()
738 ci->i_auth_cap = cap; in ceph_add_cap()
742 WARN_ON(ci->i_auth_cap == cap); in ceph_add_cap()
813 if (ci->i_auth_cap) { in __ceph_caps_issued()
814 cap = ci->i_auth_cap; in __ceph_caps_issued()
1081 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
1128 if (ci->i_auth_cap == cap) in __ceph_remove_cap()
1129 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1195 WARN_ON_ONCE(ci->i_auth_cap == cap && in ceph_remove_cap()
1408 if (cap == ci->i_auth_cap) { in __prep_cap()
1641 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1702 if (!ci->i_auth_cap) { in ceph_flush_snaps()
1707 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1760 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1772 struct ceph_mds_session *session = ci->i_auth_cap->session; in __ceph_mark_dirty_caps()
1783 &ci->netfs.inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
2088 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
2096 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
2097 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
2106 if (cap == ci->i_auth_cap && in ceph_check_caps()
2122 if (cap == ci->i_auth_cap) { in ceph_check_caps()
2175 if (cap == ci->i_auth_cap && in ceph_check_caps()
2186 if (cap == ci->i_auth_cap && ci->i_dirty_caps) { in ceph_check_caps()
2242 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2243 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2384 if (ci->i_auth_cap) { in flush_mdlog_and_wait_inode_unsafe_requests()
2385 s = ci->i_auth_cap->session; in flush_mdlog_and_wait_inode_unsafe_requests()
2537 cap = ci->i_auth_cap; in __kick_flushing_caps()
2603 cap = ci->i_auth_cap; in ceph_early_kick_flushing_caps()
2653 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2672 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
2785 ret = ci->i_auth_cap ? -EFBIG : -EUCLEAN; in try_get_cap_refs()
2845 if (ci->i_auth_cap && in try_get_cap_refs()
2847 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2854 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2912 if (ci->i_auth_cap && in check_max_size()
2913 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3308 WARN_ON_ONCE(ci->i_auth_cap); in ceph_put_wrbuffer_cap_refs()
3474 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
3576 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3628 else if (cap == ci->i_auth_cap) in handle_cap_grant()
3644 if (cap == ci->i_auth_cap && in handle_cap_grant()
3659 if (cap == ci->i_auth_cap) in handle_cap_grant()
3674 if (ci->i_auth_cap == cap) { in handle_cap_grant()
4032 if (cap == ci->i_auth_cap) { in handle_cap_export()
4033 ci->i_auth_cap = tcap; in handle_cap_export()
4041 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()
4047 ci->i_auth_cap == tcap) { in handle_cap_export()
4738 if (cap == ci->i_auth_cap && in ceph_encode_inode_release()
4870 is_auth = (cap == ci->i_auth_cap); in ceph_purge_inode_cap()