Lines Matching refs:i_auth_cap

564 			WARN_ON(cap != ci->i_auth_cap);  in ceph_add_cap()
609 if (ci->i_auth_cap == NULL || in ceph_add_cap()
610 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
611 ci->i_auth_cap = cap; in ceph_add_cap()
615 WARN_ON(ci->i_auth_cap == cap); in ceph_add_cap()
690 if (ci->i_auth_cap) { in __ceph_caps_issued()
691 cap = ci->i_auth_cap; in __ceph_caps_issued()
871 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
955 if (ci->i_auth_cap == cap) in __ceph_remove_cap()
956 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1307 if (ci->i_auth_cap == NULL) { in __ceph_flush_snaps()
1318 mds = ci->i_auth_cap->session->s_mds; in __ceph_flush_snaps()
1319 mseq = ci->i_auth_cap->mseq; in __ceph_flush_snaps()
1407 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1423 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
1637 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
1643 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
1644 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
1653 if (cap == ci->i_auth_cap && in ceph_check_caps()
1670 if (cap == ci->i_auth_cap && (flags & CHECK_CAPS_FLUSH) && in ceph_check_caps()
1745 if (cap == ci->i_auth_cap && ci->i_dirty_caps) in ceph_check_caps()
1797 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
1798 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
1984 cap = ci->i_auth_cap; in kick_flushing_capsnaps()
2011 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2042 cap = ci->i_auth_cap; in kick_flushing_inode_caps()
2173 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2174 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2181 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2216 if (ci->i_auth_cap && in check_max_size()
2217 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2518 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
2607 if (ci->i_auth_cap == cap && max_size != ci->i_max_size) { in handle_cap_grant()
2650 else if (cap == ci->i_auth_cap) in handle_cap_grant()
2663 if (cap == ci->i_auth_cap && in handle_cap_grant()
2938 if (cap == ci->i_auth_cap) in handle_cap_export()
2939 ci->i_auth_cap = tcap; in handle_cap_export()
2940 if (ci->i_flushing_caps && ci->i_auth_cap == tcap) { in handle_cap_export()
2951 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()