Lines Matching refs:i_auth_cap

673 			WARN_ON(cap != ci->i_auth_cap);  in ceph_add_cap()
732 if (!ci->i_auth_cap || in ceph_add_cap()
733 ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { in ceph_add_cap()
734 ci->i_auth_cap = cap; in ceph_add_cap()
738 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()
998 if (cap == ci->i_auth_cap) in __ceph_caps_mds_wanted()
1063 if (ci->i_auth_cap == cap) in __ceph_remove_cap()
1064 ci->i_auth_cap = NULL; in __ceph_remove_cap()
1506 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1565 if (!ci->i_auth_cap) { in ceph_flush_snaps()
1570 mds = ci->i_auth_cap->session->s_mds; in ceph_flush_snaps()
1623 if (!ci->i_auth_cap) { in __ceph_mark_dirty_caps()
1644 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
1846 (ci->i_auth_cap && __ceph_is_single_caps(ci))) in ceph_check_caps()
1928 ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) in ceph_check_caps()
1934 if (ci->i_auth_cap && cap != ci->i_auth_cap) in ceph_check_caps()
1935 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
1944 if (cap == ci->i_auth_cap && in ceph_check_caps()
1960 if (cap == ci->i_auth_cap) { in ceph_check_caps()
2024 if (cap == ci->i_auth_cap && in ceph_check_caps()
2048 if (cap == ci->i_auth_cap && ci->i_dirty_caps) { in ceph_check_caps()
2099 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2100 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2329 cap = ci->i_auth_cap; in __kick_flushing_caps()
2400 cap = ci->i_auth_cap; in ceph_early_kick_flushing_caps()
2448 cap = ci->i_auth_cap; in ceph_kick_flushing_caps()
2471 cap = ci->i_auth_cap; in kick_flushing_inode_caps()
2645 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2646 struct ceph_mds_session *s = ci->i_auth_cap->session; in try_get_cap_refs()
2653 inode, ceph_cap_string(need), ci->i_auth_cap->mds); in try_get_cap_refs()
2708 if (ci->i_auth_cap && in check_max_size()
2709 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3148 WARN_ON(cap != ci->i_auth_cap); in handle_cap_grant()
3237 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3292 else if (cap == ci->i_auth_cap) in handle_cap_grant()
3305 if (cap == ci->i_auth_cap && in handle_cap_grant()
3640 if (cap == ci->i_auth_cap) in handle_cap_export()
3641 ci->i_auth_cap = tcap; in handle_cap_export()
3644 ci->i_auth_cap == tcap) { in handle_cap_export()
3655 int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; in handle_cap_export()
3661 ci->i_auth_cap == tcap) { in handle_cap_export()