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()
560 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
634 struct ceph_cap **new_cap) in ceph_add_cap()
638 struct ceph_cap *cap; in ceph_add_cap()
764 static int __cap_is_valid(struct ceph_cap *cap) in __cap_is_valid()
790 struct ceph_cap *cap; in __ceph_caps_issued()
796 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued()
820 int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) in __ceph_caps_issued_other()
823 struct ceph_cap *cap; in __ceph_caps_issued_other()
827 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_other()
841 static void __touch_cap(struct ceph_cap *cap) in __touch_cap()
864 struct ceph_cap *cap; in __ceph_caps_issued_mask()
877 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_mask()
904 cap = rb_entry(q, struct ceph_cap, in __ceph_caps_issued_mask()
937 struct ceph_cap *ocap, int mask) in __ceph_caps_revoking_other()
939 struct ceph_cap *cap; in __ceph_caps_revoking_other()
943 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_revoking_other()
1070 struct ceph_cap *cap; in __ceph_caps_mds_wanted()
1075 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_mds_wanted()
1104 void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in __ceph_remove_cap()
1178 void ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in ceph_remove_cap()
1326 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_remove_caps()
1341 static void __prep_cap(struct cap_msg_args *arg, struct ceph_cap *cap, in __prep_cap()
1579 struct ceph_cap *cap = ci->i_auth_cap; in __ceph_flush_snaps()
1904 struct ceph_cap *cap; in ceph_check_caps()
2007 cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_check_caps()
2147 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2415 struct ceph_cap *cap; in __kick_flushing_caps()
2489 struct ceph_cap *cap; in ceph_early_kick_flushing_caps()
2537 struct ceph_cap *cap; in ceph_kick_flushing_caps()
2569 struct ceph_cap *cap = ci->i_auth_cap; in ceph_kick_flushing_inode_caps()
3284 struct ceph_cap *cap, in handle_cap_grant()
3578 struct ceph_cap *cap) in handle_cap_flush_ack()
3818 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export()
3945 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import()
3948 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import()
4027 struct ceph_cap *cap; in ceph_handle_caps()
4450 struct ceph_cap *cap; in ceph_encode_inode_release()