Lines Matching refs:ceph_cap
126 struct ceph_cap *cap; in ceph_caps_finalize()
131 struct ceph_cap, caps_item); in ceph_caps_finalize()
155 struct ceph_cap *cap; in ceph_reserve_caps()
224 struct ceph_cap *ceph_get_cap(struct ceph_mds_client *mdsc, in ceph_get_cap()
227 struct ceph_cap *cap = NULL; in ceph_get_cap()
253 cap = list_first_entry(&mdsc->caps_list, struct ceph_cap, caps_item); in ceph_get_cap()
262 void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) in ceph_put_cap()
310 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds()
312 struct ceph_cap *cap; in __get_cap_for_mds()
316 cap = rb_entry(n, struct ceph_cap, ci_node); in __get_cap_for_mds()
327 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds()
329 struct ceph_cap *cap; in ceph_get_cap_for_mds()
342 struct ceph_cap *cap; in __ceph_get_cap_mds()
348 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_get_cap_mds()
372 struct ceph_cap *new) in __insert_cap_node()
376 struct ceph_cap *cap = NULL; in __insert_cap_node()
380 cap = rb_entry(parent, struct ceph_cap, ci_node); in __insert_cap_node()
473 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
515 struct ceph_cap **new_cap) in ceph_add_cap()
519 struct ceph_cap *cap; in ceph_add_cap()
642 static int __cap_is_valid(struct ceph_cap *cap) in __cap_is_valid()
670 struct ceph_cap *cap; in __ceph_caps_issued()
676 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued()
700 int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) in __ceph_caps_issued_other()
703 struct ceph_cap *cap; in __ceph_caps_issued_other()
707 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_other()
721 static void __touch_cap(struct ceph_cap *cap) in __touch_cap()
744 struct ceph_cap *cap; in __ceph_caps_issued_mask()
757 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_issued_mask()
784 cap = rb_entry(q, struct ceph_cap, in __ceph_caps_issued_mask()
802 struct ceph_cap *ocap, int mask) in __ceph_caps_revoking_other()
804 struct ceph_cap *cap; in __ceph_caps_revoking_other()
808 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_revoking_other()
865 struct ceph_cap *cap; in __ceph_caps_mds_wanted()
870 cap = rb_entry(p, struct ceph_cap, ci_node); in __ceph_caps_mds_wanted()
919 void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) in __ceph_remove_cap()
1085 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_queue_caps_release()
1108 static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, in __send_cap()
1575 struct ceph_cap *cap; in ceph_check_caps()
1682 cap = rb_entry(p, struct ceph_cap, ci_node); in ceph_check_caps()
1857 struct ceph_cap *cap = ci->i_auth_cap; in try_flush_caps()
2103 struct ceph_cap *cap; in kick_flushing_capsnaps()
2124 struct ceph_cap *cap; in __kick_flushing_caps()
2174 struct ceph_cap *cap; in ceph_early_kick_flushing_caps()
2229 struct ceph_cap *cap; in kick_flushing_inode_caps()
2756 struct ceph_cap *cap, int issued) in handle_cap_grant()
3005 struct ceph_cap *cap) in handle_cap_flush_ack()
3195 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export()
3310 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import()
3314 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import()
3398 struct ceph_cap *cap; in ceph_handle_caps()
3670 struct ceph_cap *cap; in ceph_encode_inode_release()