Lines Matching refs:i_auth_cap
691 WARN_ON(cap != ci->i_auth_cap); in ceph_add_cap()
750 if (!ci->i_auth_cap || in ceph_add_cap()
751 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
752 if (ci->i_auth_cap && in ceph_add_cap()
753 ci->i_auth_cap->session != cap->session) in ceph_add_cap()
755 ci->i_auth_cap = cap; in ceph_add_cap()
759 WARN_ON(ci->i_auth_cap == cap); in ceph_add_cap()
831 if (ci->i_auth_cap) { in __ceph_caps_issued()
832 cap = ci->i_auth_cap; in __ceph_caps_issued()
1099 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
1151 if (ci->i_auth_cap == cap) { in __ceph_remove_cap()
1153 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1388 if (cap == ci->i_auth_cap) { in __prep_cap()
1584 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1643 if (!ci->i_auth_cap) { in ceph_flush_snaps()
1648 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1703 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1715 struct ceph_mds_session *session = ci->i_auth_cap->session; in __ceph_mark_dirty_caps()
1726 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
2015 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
2025 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
2026 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
2035 if (cap == ci->i_auth_cap && in ceph_check_caps()
2051 if (cap == ci->i_auth_cap) { in ceph_check_caps()
2116 if (cap == ci->i_auth_cap && in ceph_check_caps()
2140 if (cap == ci->i_auth_cap && ci->i_dirty_caps) { in ceph_check_caps()
2199 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2200 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2427 cap = ci->i_auth_cap; in __kick_flushing_caps()
2493 cap = ci->i_auth_cap; in ceph_early_kick_flushing_caps()
2543 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2562 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
2675 ret = ci->i_auth_cap ? -EFBIG : -ESTALE; in try_get_cap_refs()
2735 if (ci->i_auth_cap && in try_get_cap_refs()
2737 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2744 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2802 if (ci->i_auth_cap && in check_max_size()
2803 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3307 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
3396 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3448 else if (cap == ci->i_auth_cap) in handle_cap_grant()
3461 if (cap == ci->i_auth_cap && in handle_cap_grant()
3481 if (ci->i_auth_cap == cap && in handle_cap_grant()
3809 if (cap == ci->i_auth_cap) { in handle_cap_export()
3810 ci->i_auth_cap = tcap; in handle_cap_export()
3818 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()
3824 ci->i_auth_cap == tcap) { in handle_cap_export()
4440 if (cap == ci->i_auth_cap && in ceph_encode_inode_release()