Lines Matching refs:i_auth_cap
689 WARN_ON(cap != ci->i_auth_cap); in ceph_add_cap()
731 if (!ci->i_auth_cap || in ceph_add_cap()
732 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
733 if (ci->i_auth_cap && in ceph_add_cap()
734 ci->i_auth_cap->session != cap->session) in ceph_add_cap()
736 ci->i_auth_cap = cap; in ceph_add_cap()
740 WARN_ON(ci->i_auth_cap == cap); in ceph_add_cap()
810 if (ci->i_auth_cap) { in __ceph_caps_issued()
811 cap = ci->i_auth_cap; in __ceph_caps_issued()
1078 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
1125 if (ci->i_auth_cap == cap) in __ceph_remove_cap()
1126 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1192 WARN_ON_ONCE(ci->i_auth_cap == cap && in ceph_remove_cap()
1383 if (cap == ci->i_auth_cap) { in __prep_cap()
1579 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1638 if (!ci->i_auth_cap) { in ceph_flush_snaps()
1643 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1691 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1703 struct ceph_mds_session *session = ci->i_auth_cap->session; in __ceph_mark_dirty_caps()
1714 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
2011 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
2019 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
2020 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
2029 if (cap == ci->i_auth_cap && in ceph_check_caps()
2045 if (cap == ci->i_auth_cap) { in ceph_check_caps()
2081 if (cap == ci->i_auth_cap && in ceph_check_caps()
2092 if (cap == ci->i_auth_cap && ci->i_dirty_caps) { in ceph_check_caps()
2146 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2147 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2294 if (ci->i_auth_cap) { in unsafe_request_wait()
2295 s = ci->i_auth_cap->session; in unsafe_request_wait()
2434 cap = ci->i_auth_cap; in __kick_flushing_caps()
2500 cap = ci->i_auth_cap; in ceph_early_kick_flushing_caps()
2550 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2569 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
2682 ret = ci->i_auth_cap ? -EFBIG : -ESTALE; in try_get_cap_refs()
2738 if (ci->i_auth_cap && in try_get_cap_refs()
2740 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2747 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2805 if (ci->i_auth_cap && in check_max_size()
2806 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3188 WARN_ON_ONCE(ci->i_auth_cap); in ceph_put_wrbuffer_cap_refs()
3343 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
3438 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3490 else if (cap == ci->i_auth_cap) in handle_cap_grant()
3503 if (cap == ci->i_auth_cap && in handle_cap_grant()
3523 if (ci->i_auth_cap == cap && in handle_cap_grant()
3875 if (cap == ci->i_auth_cap) { in handle_cap_export()
3876 ci->i_auth_cap = tcap; in handle_cap_export()
3884 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()
3890 ci->i_auth_cap == tcap) { in handle_cap_export()
4493 if (cap == ci->i_auth_cap && in ceph_encode_inode_release()