Lines Matching refs:ocfs2_lock_res
59 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres);
60 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres);
61 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres);
62 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres);
89 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
91 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres);
93 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
96 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
100 struct ocfs2_lock_res *lockres);
102 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres);
104 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres,
106 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres,
115 struct ocfs2_lock_res *lockres)
152 * Translate an ocfs2_lock_res * into an ocfs2_super *. Define
155 struct ocfs2_super * (*get_osb)(struct ocfs2_lock_res *);
166 void (*post_unlock)(struct ocfs2_super *, struct ocfs2_lock_res *);
178 int (*check_downconvert)(struct ocfs2_lock_res *, int);
189 void (*set_lvb)(struct ocfs2_lock_res *);
200 int (*downconvert_worker)(struct ocfs2_lock_res *, int);
287 static inline int ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres)
294 static inline struct ocfs2_lock_res *ocfs2_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb)
296 return container_of(lksb, struct ocfs2_lock_res, l_lksb);
299 static inline struct inode *ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres)
306 static inline struct ocfs2_dentry_lock *ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres)
313 static inline struct ocfs2_mem_dqinfo *ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres)
321 ocfs2_lock_res_refcount_tree(struct ocfs2_lock_res *res)
326 static inline struct ocfs2_super *ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres)
335 struct ocfs2_lock_res *lockres,
338 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres,
341 struct ocfs2_lock_res *lockres,
344 struct ocfs2_lock_res *lockres,
350 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres);
351 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres);
352 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres);
353 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level);
355 struct ocfs2_lock_res *lockres);
356 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
369 struct ocfs2_lock_res *lockres);
374 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres,
377 struct ocfs2_lock_res *lockres,
382 struct ocfs2_lock_res *lockres);
384 struct ocfs2_lock_res *lockres);
407 static void ocfs2_add_lockres_tracking(struct ocfs2_lock_res *res,
417 static void ocfs2_remove_lockres_tracking(struct ocfs2_lock_res *res)
426 static void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
434 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
468 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres)
473 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres)
493 static inline void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
496 static inline void ocfs2_update_lock_stats(struct ocfs2_lock_res *res,
500 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres)
503 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres)
512 struct ocfs2_lock_res *res,
541 void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res)
544 memset(res, 0, sizeof(struct ocfs2_lock_res));
552 void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res,
580 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres)
587 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres)
594 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres)
601 static __u64 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres)
611 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres)
624 struct ocfs2_lock_res *lockres = &dl->dl_lockres;
658 static void ocfs2_super_lock_res_init(struct ocfs2_lock_res *res,
670 static void ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res,
681 static void ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res,
700 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
713 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
721 static void ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res,
730 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres,
745 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres,
756 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres,
767 void ocfs2_lock_res_free(struct ocfs2_lock_res *res)
800 static inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres,
812 ocfs2_pid_holder(struct ocfs2_lock_res *lockres,
828 static inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres,
839 static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres,
856 static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres,
889 static void lockres_set_flags(struct ocfs2_lock_res *lockres,
908 static void lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or)
912 static void lockres_clear_flags(struct ocfs2_lock_res *lockres,
918 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres)
934 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres)
964 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres)
979 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres,
1067 static void __lockres_clear_pending(struct ocfs2_lock_res *lockres,
1093 static void lockres_clear_pending(struct ocfs2_lock_res *lockres,
1104 static unsigned int lockres_set_pending(struct ocfs2_lock_res *lockres)
1116 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1147 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1213 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1288 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
1310 struct ocfs2_lock_res *lockres,
1352 static inline int ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres,
1365 static inline void ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres)
1372 static inline void ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres)
1382 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres,
1405 static void lockres_add_mask_waiter(struct ocfs2_lock_res *lockres,
1422 static int __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres,
1440 static int lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres,
1455 struct ocfs2_lock_res *lockres)
1470 struct ocfs2_lock_res *lockres,
1673 struct ocfs2_lock_res *lockres,
1684 struct ocfs2_lock_res *lockres,
1701 struct ocfs2_lock_res *lockres,
1767 struct ocfs2_lock_res *lockres;
1791 struct ocfs2_lock_res *lockres;
1812 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres;
1829 struct ocfs2_lock_res *lockres;
1851 struct ocfs2_lock_res *lockres;
1888 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres;
1906 static int ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres,
1980 struct ocfs2_lock_res *lockres = &fp->fp_flock;
2076 struct ocfs2_lock_res *lockres = &fp->fp_flock;
2115 struct ocfs2_lock_res *lockres)
2164 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2210 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2246 struct ocfs2_lock_res *lockres)
2264 static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres)
2295 static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres,
2315 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2424 struct ocfs2_lock_res *lockres = NULL;
2611 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres;
2670 struct ocfs2_lock_res *lockres;
2726 struct ocfs2_lock_res *lockres;
2742 struct ocfs2_lock_res *lockres;
2769 struct ocfs2_lock_res *lockres;
2786 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2824 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2833 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres;
2850 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres;
2859 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres;
2888 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres;
2904 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
2944 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
3041 struct ocfs2_lock_res p_iter_res;
3042 struct ocfs2_lock_res p_tmp_res;
3045 static struct ocfs2_lock_res *ocfs2_dlm_next_res(struct ocfs2_lock_res *start,
3048 struct ocfs2_lock_res *iter, *ret = NULL;
3074 struct ocfs2_lock_res *iter;
3101 struct ocfs2_lock_res *iter = v;
3102 struct ocfs2_lock_res *dummy = &priv->p_iter_res;
3132 struct ocfs2_lock_res *lockres = v;
3261 struct ocfs2_lock_res *res = &priv->p_iter_res;
3408 struct ocfs2_lock_res *lockres)
3490 struct ocfs2_lock_res *lockres);
3499 struct ocfs2_lock_res *lockres)
3559 struct ocfs2_lock_res *lockres)
3608 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres,
3638 struct ocfs2_lock_res *lockres,
3682 struct ocfs2_lock_res *lockres)
3711 struct ocfs2_lock_res *lockres)
3728 struct ocfs2_lock_res *lockres,
3924 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
3977 struct ocfs2_lock_res *lockres,
3992 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
4000 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres)
4013 struct ocfs2_lock_res *lockres)
4038 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
4131 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres,
4140 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres,
4151 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres)
4170 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4182 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4225 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4259 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres;
4279 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres;
4287 struct ocfs2_lock_res *lockres)
4333 struct ocfs2_lock_res *lockres)
4363 struct ocfs2_lock_res *lockres;
4379 struct ocfs2_lock_res, l_blocked_list);