Lines Matching refs:ceph_cap
138 struct ceph_cap *cap; in ceph_caps_finalize()
143 struct ceph_cap, caps_item); in ceph_caps_finalize()
171 struct ceph_cap *cap; in __ceph_unreserve_caps()
182 struct ceph_cap, caps_item); in __ceph_unreserve_caps()
208 struct ceph_cap *cap; in ceph_reserve_caps()
331 struct ceph_cap *ceph_get_cap(struct ceph_mds_client *mdsc, in ceph_get_cap()
335 struct ceph_cap *cap = NULL; in ceph_get_cap()
353 struct ceph_cap, caps_item); in ceph_get_cap()
378 cap = list_first_entry(&mdsc->caps_list, struct ceph_cap, caps_item); in ceph_get_cap()
387 void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) in ceph_put_cap()
441 struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds()
443 struct ceph_cap *cap; in __get_cap_for_mds()
447 cap = rb_entry(n, struct ceph_cap, ci_node); in __get_cap_for_mds()
458 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds()
460 struct ceph_cap *cap; in ceph_get_cap_for_mds()
472 struct ceph_cap *new) in __insert_cap_node()
476 struct ceph_cap *cap = NULL; in __insert_cap_node()
480 cap = rb_entry(parent, struct ceph_cap, ci_node); in __insert_cap_node()
577 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
654 struct ceph_cap **new_cap) in ceph_add_cap()
659 struct ceph_cap *cap; in ceph_add_cap()
787 static int __cap_is_valid(struct ceph_cap *cap) in __cap_is_valid()
817 struct ceph_cap *cap; in __ceph_caps_issued()
823 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued()
847 int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) in __ceph_caps_issued_other()
850 struct ceph_cap *cap; in __ceph_caps_issued_other()
854 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_other()
868 static void __touch_cap(struct ceph_cap *cap) in __touch_cap()
895 struct ceph_cap *cap; in __ceph_caps_issued_mask()
907 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_mask()
934 cap = rb_entry(q, struct ceph_cap, in __ceph_caps_issued_mask()
967 struct ceph_cap *ocap, int mask) in __ceph_caps_revoking_other()
969 struct ceph_cap *cap; in __ceph_caps_revoking_other()
973 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_revoking_other()
1087 struct ceph_cap *cap; in __ceph_caps_mds_wanted()
1092 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_mds_wanted()
1121 void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in __ceph_remove_cap()
1197 void ceph_remove_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, in ceph_remove_cap()
1375 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_remove_caps()
1390 static void __prep_cap(struct cap_msg_args *arg, struct ceph_cap *cap, in __prep_cap()
1671 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
2014 struct ceph_cap *cap; in ceph_check_caps()
2127 cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_check_caps()
2291 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2569 struct ceph_cap *cap; in __kick_flushing_caps()
2648 struct ceph_cap *cap; in ceph_early_kick_flushing_caps()
2700 struct ceph_cap *cap; in ceph_kick_flushing_caps()
2735 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
3486 struct ceph_cap *cap, in handle_cap_grant()
3813 struct ceph_cap *cap) in handle_cap_flush_ack()
4071 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export()
4202 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import()
4206 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import()
4334 struct ceph_cap *cap; in ceph_handle_caps()
4845 struct ceph_cap *cap; in ceph_encode_inode_release()
5005 int ceph_purge_inode_cap(struct inode *inode, struct ceph_cap *cap, bool *invalidate) in ceph_purge_inode_cap()