Lines Matching refs:ceph_cap

135 	struct ceph_cap *cap;  in ceph_caps_finalize()
140 struct ceph_cap, caps_item); in ceph_caps_finalize()
168 struct ceph_cap *cap; in __ceph_unreserve_caps()
179 struct ceph_cap, caps_item); in __ceph_unreserve_caps()
204 struct ceph_cap *cap; in ceph_reserve_caps()
326 struct ceph_cap *ceph_get_cap(struct ceph_mds_client *mdsc, in ceph_get_cap()
329 struct ceph_cap *cap = NULL; in ceph_get_cap()
347 struct ceph_cap, caps_item); in ceph_get_cap()
372 cap = list_first_entry(&mdsc->caps_list, struct ceph_cap, caps_item); in ceph_get_cap()
381 void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) in ceph_put_cap()
433 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds()
435 struct ceph_cap *cap; in __get_cap_for_mds()
439 cap = rb_entry(n, struct ceph_cap, ci_node); in __get_cap_for_mds()
450 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds()
452 struct ceph_cap *cap; in ceph_get_cap_for_mds()
464 struct ceph_cap *new) in __insert_cap_node()
468 struct ceph_cap *cap = NULL; in __insert_cap_node()
472 cap = rb_entry(parent, struct ceph_cap, ci_node); in __insert_cap_node()
567 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
610 struct ceph_cap **new_cap) in ceph_add_cap()
614 struct ceph_cap *cap; in ceph_add_cap()
765 static int __cap_is_valid(struct ceph_cap *cap) in __cap_is_valid()
793 struct ceph_cap *cap; in __ceph_caps_issued()
799 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued()
823 int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) in __ceph_caps_issued_other()
826 struct ceph_cap *cap; in __ceph_caps_issued_other()
830 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_other()
844 static void __touch_cap(struct ceph_cap *cap) in __touch_cap()
867 struct ceph_cap *cap; in __ceph_caps_issued_mask()
880 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_mask()
907 cap = rb_entry(q, struct ceph_cap, in __ceph_caps_issued_mask()
925 struct ceph_cap *ocap, int mask) in __ceph_caps_revoking_other()
927 struct ceph_cap *cap; in __ceph_caps_revoking_other()
931 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_revoking_other()
990 struct ceph_cap *cap; in __ceph_caps_mds_wanted()
995 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_mds_wanted()
1051 void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in __ceph_remove_cap()
1249 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_remove_caps()
1269 static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, in __send_cap()
1506 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1823 struct ceph_cap *cap; in ceph_check_caps()
1924 cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_check_caps()
2100 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2310 struct ceph_cap *cap; in __kick_flushing_caps()
2389 struct ceph_cap *cap; in ceph_early_kick_flushing_caps()
2437 struct ceph_cap *cap; in ceph_kick_flushing_caps()
2469 struct ceph_cap *cap; in kick_flushing_inode_caps()
3089 struct ceph_cap *cap, in handle_cap_grant()
3371 struct ceph_cap *cap) in handle_cap_flush_ack()
3581 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export()
3715 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import()
3719 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import()
3802 struct ceph_cap *cap; in ceph_handle_caps()
4164 struct ceph_cap *cap; in ceph_encode_inode_release()