Lines Matching refs:ci
121 struct ceph_inode_info *ci; member
157 struct ceph_inode_info *ci; member
448 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_ino_compare() local
449 return ci->i_vino.ino == pvino->ino && in ceph_ino_compare()
450 ci->i_vino.snap == pvino->snap; in ceph_ino_compare()
473 static inline void __ceph_dir_set_complete(struct ceph_inode_info *ci, in __ceph_dir_set_complete() argument
478 atomic64_set(&ci->i_complete_seq[0], release_count); in __ceph_dir_set_complete()
479 atomic64_set(&ci->i_complete_seq[1], ordered_count); in __ceph_dir_set_complete()
482 static inline void __ceph_dir_clear_complete(struct ceph_inode_info *ci) in __ceph_dir_clear_complete() argument
484 atomic64_inc(&ci->i_release_count); in __ceph_dir_clear_complete()
487 static inline void __ceph_dir_clear_ordered(struct ceph_inode_info *ci) in __ceph_dir_clear_ordered() argument
489 atomic64_inc(&ci->i_ordered_count); in __ceph_dir_clear_ordered()
492 static inline bool __ceph_dir_is_complete(struct ceph_inode_info *ci) in __ceph_dir_is_complete() argument
494 return atomic64_read(&ci->i_complete_seq[0]) == in __ceph_dir_is_complete()
495 atomic64_read(&ci->i_release_count); in __ceph_dir_is_complete()
498 static inline bool __ceph_dir_is_complete_ordered(struct ceph_inode_info *ci) in __ceph_dir_is_complete_ordered() argument
500 return atomic64_read(&ci->i_complete_seq[0]) == in __ceph_dir_is_complete_ordered()
501 atomic64_read(&ci->i_release_count) && in __ceph_dir_is_complete_ordered()
502 atomic64_read(&ci->i_complete_seq[1]) == in __ceph_dir_is_complete_ordered()
503 atomic64_read(&ci->i_ordered_count); in __ceph_dir_is_complete_ordered()
524 extern struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci,
531 extern u32 ceph_choose_frag(struct ceph_inode_info *ci, u32 v,
548 static inline bool __ceph_is_any_real_caps(struct ceph_inode_info *ci) in __ceph_is_any_real_caps() argument
550 return !RB_EMPTY_ROOT(&ci->i_caps); in __ceph_is_any_real_caps()
553 extern int __ceph_caps_issued(struct ceph_inode_info *ci, int *implemented);
554 extern int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int t);
555 extern int __ceph_caps_issued_other(struct ceph_inode_info *ci,
558 static inline int ceph_caps_issued(struct ceph_inode_info *ci) in ceph_caps_issued() argument
561 spin_lock(&ci->i_ceph_lock); in ceph_caps_issued()
562 issued = __ceph_caps_issued(ci, NULL); in ceph_caps_issued()
563 spin_unlock(&ci->i_ceph_lock); in ceph_caps_issued()
567 static inline int ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, in ceph_caps_issued_mask() argument
571 spin_lock(&ci->i_ceph_lock); in ceph_caps_issued_mask()
572 r = __ceph_caps_issued_mask(ci, mask, touch); in ceph_caps_issued_mask()
573 spin_unlock(&ci->i_ceph_lock); in ceph_caps_issued_mask()
577 static inline int __ceph_caps_dirty(struct ceph_inode_info *ci) in __ceph_caps_dirty() argument
579 return ci->i_dirty_caps | ci->i_flushing_caps; in __ceph_caps_dirty()
583 extern int __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask,
586 extern int __ceph_caps_revoking_other(struct ceph_inode_info *ci,
588 extern int ceph_caps_revoking(struct ceph_inode_info *ci, int mask);
589 extern int __ceph_caps_used(struct ceph_inode_info *ci);
591 extern int __ceph_caps_file_wanted(struct ceph_inode_info *ci);
596 static inline int __ceph_caps_wanted(struct ceph_inode_info *ci) in __ceph_caps_wanted() argument
598 int w = __ceph_caps_file_wanted(ci) | __ceph_caps_used(ci); in __ceph_caps_wanted()
605 extern int __ceph_caps_mds_wanted(struct ceph_inode_info *ci);
736 extern void ceph_queue_cap_snap(struct ceph_inode_info *ci);
737 extern int __ceph_finish_cap_snap(struct ceph_inode_info *ci,
747 static inline bool __ceph_have_pending_cap_snap(struct ceph_inode_info *ci) in __ceph_have_pending_cap_snap() argument
749 return !list_empty(&ci->i_cap_snaps) && in __ceph_have_pending_cap_snap()
750 list_last_entry(&ci->i_cap_snaps, struct ceph_cap_snap, in __ceph_have_pending_cap_snap()
804 extern void __ceph_build_xattrs_blob(struct ceph_inode_info *ci);
805 extern void __ceph_destroy_xattrs(struct ceph_inode_info *ci);
883 extern struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci,
886 extern void ceph_get_cap_refs(struct ceph_inode_info *ci, int caps);
887 extern void ceph_put_cap_refs(struct ceph_inode_info *ci, int had);
888 extern void ceph_put_wrbuffer_cap_refs(struct ceph_inode_info *ci, int nr,
890 extern void __ceph_flush_snaps(struct ceph_inode_info *ci,
893 extern void ceph_check_caps(struct ceph_inode_info *ci, int flags,
903 extern int ceph_get_caps(struct ceph_inode_info *ci, int need, int want,
907 static inline void __ceph_get_fmode(struct ceph_inode_info *ci, int mode) in __ceph_get_fmode() argument
909 ci->i_nr_by_mode[mode]++; in __ceph_get_fmode()
911 extern void ceph_put_fmode(struct ceph_inode_info *ci, int mode);
917 extern int ceph_pool_perm_check(struct ceph_inode_info *ci, int need);