Lines Matching refs:ceph_cap

134 	struct ceph_cap *cap;  in ceph_caps_finalize()
139 struct ceph_cap, caps_item); in ceph_caps_finalize()
161 struct ceph_cap *cap; in __ceph_unreserve_caps()
172 struct ceph_cap, caps_item); in __ceph_unreserve_caps()
197 struct ceph_cap *cap; in ceph_reserve_caps()
307 struct ceph_cap *ceph_get_cap(struct ceph_mds_client *mdsc, in ceph_get_cap()
310 struct ceph_cap *cap = NULL; in ceph_get_cap()
328 struct ceph_cap, caps_item); in ceph_get_cap()
352 cap = list_first_entry(&mdsc->caps_list, struct ceph_cap, caps_item); in ceph_get_cap()
361 void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) in ceph_put_cap()
413 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds()
415 struct ceph_cap *cap; in __get_cap_for_mds()
419 cap = rb_entry(n, struct ceph_cap, ci_node); in __get_cap_for_mds()
430 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds()
432 struct ceph_cap *cap; in ceph_get_cap_for_mds()
445 struct ceph_cap *cap; in __ceph_get_cap_mds()
451 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_get_cap_mds()
475 struct ceph_cap *new) in __insert_cap_node()
479 struct ceph_cap *cap = NULL; in __insert_cap_node()
483 cap = rb_entry(parent, struct ceph_cap, ci_node); in __insert_cap_node()
576 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
619 struct ceph_cap **new_cap) in ceph_add_cap()
623 struct ceph_cap *cap; in ceph_add_cap()
760 static int __cap_is_valid(struct ceph_cap *cap) in __cap_is_valid()
788 struct ceph_cap *cap; in __ceph_caps_issued()
794 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued()
818 int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) in __ceph_caps_issued_other()
821 struct ceph_cap *cap; in __ceph_caps_issued_other()
825 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_other()
839 static void __touch_cap(struct ceph_cap *cap) in __touch_cap()
862 struct ceph_cap *cap; in __ceph_caps_issued_mask()
875 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_mask()
902 cap = rb_entry(q, struct ceph_cap, in __ceph_caps_issued_mask()
920 struct ceph_cap *ocap, int mask) in __ceph_caps_revoking_other()
922 struct ceph_cap *cap; in __ceph_caps_revoking_other()
926 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_revoking_other()
985 struct ceph_cap *cap; in __ceph_caps_mds_wanted()
990 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_mds_wanted()
1046 void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in __ceph_remove_cap()
1259 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_queue_caps_release()
1283 static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, in __send_cap()
1509 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1838 struct ceph_cap *cap; in ceph_check_caps()
1936 cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_check_caps()
2140 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2332 struct ceph_cap *cap; in __kick_flushing_caps()
2398 struct ceph_cap *cap; in ceph_early_kick_flushing_caps()
2441 struct ceph_cap *cap; in ceph_kick_flushing_caps()
2474 struct ceph_cap *cap; in kick_flushing_inode_caps()
3075 struct ceph_cap *cap, in handle_cap_grant()
3351 struct ceph_cap *cap) in handle_cap_flush_ack()
3561 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export()
3696 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import()
3700 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import()
3783 struct ceph_cap *cap; in ceph_handle_caps()
4144 struct ceph_cap *cap; in ceph_encode_inode_release()