Lines Matching refs:ocfs2_lock_res

71 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres);
72 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres);
73 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres);
74 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres);
99 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
101 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres);
103 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
106 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
110 struct ocfs2_lock_res *lockres);
112 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres);
114 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres,
116 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres,
125 struct ocfs2_lock_res *lockres) in ocfs2_dump_meta_lvb_info()
165 struct ocfs2_super * (*get_osb)(struct ocfs2_lock_res *);
176 void (*post_unlock)(struct ocfs2_super *, struct ocfs2_lock_res *);
188 int (*check_downconvert)(struct ocfs2_lock_res *, int);
199 void (*set_lvb)(struct ocfs2_lock_res *);
210 int (*downconvert_worker)(struct ocfs2_lock_res *, int);
293 static inline int ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) in ocfs2_is_inode_lock()
300 static inline struct ocfs2_lock_res *ocfs2_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb) in ocfs2_lksb_to_lock_res()
302 return container_of(lksb, struct ocfs2_lock_res, l_lksb); in ocfs2_lksb_to_lock_res()
305 static inline struct inode *ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_inode()
312 static inline struct ocfs2_dentry_lock *ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_dl()
319 static inline struct ocfs2_mem_dqinfo *ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_qinfo()
327 ocfs2_lock_res_refcount_tree(struct ocfs2_lock_res *res) in ocfs2_lock_res_refcount_tree()
332 static inline struct ocfs2_super *ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_lockres_osb()
341 struct ocfs2_lock_res *lockres,
344 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres,
347 struct ocfs2_lock_res *lockres,
350 struct ocfs2_lock_res *lockres, in ocfs2_cluster_unlock()
356 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres);
357 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres);
358 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres);
359 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level);
361 struct ocfs2_lock_res *lockres);
362 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
375 struct ocfs2_lock_res *lockres);
380 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres,
383 struct ocfs2_lock_res *lockres,
388 struct ocfs2_lock_res *lockres);
390 struct ocfs2_lock_res *lockres);
413 static void ocfs2_add_lockres_tracking(struct ocfs2_lock_res *res, in ocfs2_add_lockres_tracking()
423 static void ocfs2_remove_lockres_tracking(struct ocfs2_lock_res *res) in ocfs2_remove_lockres_tracking()
432 static void ocfs2_init_lock_stats(struct ocfs2_lock_res *res) in ocfs2_init_lock_stats()
439 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level, in ocfs2_update_lock_stats()
471 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_refresh()
481 static inline void ocfs2_init_lock_stats(struct ocfs2_lock_res *res) in ocfs2_init_lock_stats()
484 static inline void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, in ocfs2_update_lock_stats()
488 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_refresh()
497 struct ocfs2_lock_res *res, in ocfs2_lock_res_init_common()
526 void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res) in ocfs2_lock_res_init_once()
529 memset(res, 0, sizeof(struct ocfs2_lock_res)); in ocfs2_lock_res_init_once()
536 void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_inode_lock_res_init()
564 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_inode_osb()
571 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_qinfo_osb()
578 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_file_osb()
585 static __u64 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres) in ocfs2_get_dentry_lock_ino()
595 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_dentry_osb()
608 struct ocfs2_lock_res *lockres = &dl->dl_lockres; in ocfs2_dentry_lock_res_init()
642 static void ocfs2_super_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_super_lock_res_init()
654 static void ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_rename_lock_res_init()
665 static void ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_nfs_sync_lock_res_init()
676 static void ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_orphan_scan_lock_res_init()
685 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_file_lock_res_init()
700 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_qinfo_lock_res_init()
711 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_refcount_lock_res_init()
722 void ocfs2_lock_res_free(struct ocfs2_lock_res *res) in ocfs2_lock_res_free()
751 static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, in ocfs2_inc_holders()
768 static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres, in ocfs2_dec_holders()
801 static void lockres_set_flags(struct ocfs2_lock_res *lockres, in lockres_set_flags()
819 static void lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or) in lockres_or_flags()
823 static void lockres_clear_flags(struct ocfs2_lock_res *lockres, in lockres_clear_flags()
829 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_downconvert_action()
845 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_convert_action()
875 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_attach_action()
890 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, in ocfs2_generic_handle_bast()
978 static void __lockres_clear_pending(struct ocfs2_lock_res *lockres, in __lockres_clear_pending()
1004 static void lockres_clear_pending(struct ocfs2_lock_res *lockres, in lockres_clear_pending()
1015 static unsigned int lockres_set_pending(struct ocfs2_lock_res *lockres) in lockres_set_pending()
1027 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_blocking_ast()
1058 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_locking_ast()
1124 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_unlock_ast()
1199 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, in ocfs2_recover_from_dlm_error()
1221 struct ocfs2_lock_res *lockres, in ocfs2_lock_create()
1263 static inline int ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres, in ocfs2_check_wait_flag()
1276 static inline void ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres) in ocfs2_wait_on_busy_lock()
1283 static inline void ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres) in ocfs2_wait_on_refreshing_lock()
1293 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres, in ocfs2_may_continue_on_blocked_lock()
1316 static void lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, in lockres_add_mask_waiter()
1332 static int __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, in __lockres_remove_mask_waiter()
1349 static int lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, in lockres_remove_mask_waiter()
1364 struct ocfs2_lock_res *lockres) in ocfs2_wait_for_mask_interruptible()
1379 struct ocfs2_lock_res *lockres, in __ocfs2_cluster_lock()
1582 struct ocfs2_lock_res *lockres, in ocfs2_cluster_lock()
1593 struct ocfs2_lock_res *lockres, in __ocfs2_cluster_unlock()
1610 struct ocfs2_lock_res *lockres, in ocfs2_create_new_lock()
1679 struct ocfs2_lock_res *lockres; in ocfs2_rw_lock()
1706 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_unlock()
1723 struct ocfs2_lock_res *lockres; in ocfs2_open_lock()
1748 struct ocfs2_lock_res *lockres; in ocfs2_try_open_lock()
1788 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; in ocfs2_open_unlock()
1808 static int ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres, in ocfs2_flock_handle_signal()
1882 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock()
1978 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_unlock()
2017 struct ocfs2_lock_res *lockres) in ocfs2_downconvert_on_unlock()
2066 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in __ocfs2_stuff_meta_lvb()
2112 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in ocfs2_refresh_inode_from_lvb()
2148 struct ocfs2_lock_res *lockres) in ocfs2_meta_lvb_is_trustable()
2166 static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) in ocfs2_should_refresh_lock_res()
2197 static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres, in ocfs2_complete_lock_res_refresh()
2217 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in ocfs2_inode_lock_update()
2326 struct ocfs2_lock_res *lockres = NULL; in ocfs2_inode_lock_full_nested()
2506 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; in ocfs2_inode_unlock()
2520 struct ocfs2_lock_res *lockres; in ocfs2_orphan_scan_lock()
2547 struct ocfs2_lock_res *lockres; in ocfs2_orphan_scan_unlock()
2564 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; in ocfs2_super_lock()
2602 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; in ocfs2_super_unlock()
2611 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; in ocfs2_rename_lock()
2628 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; in ocfs2_rename_unlock()
2637 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; in ocfs2_nfs_sync_lock()
2655 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; in ocfs2_nfs_sync_unlock()
2740 struct ocfs2_lock_res p_iter_res;
2741 struct ocfs2_lock_res p_tmp_res;
2744 static struct ocfs2_lock_res *ocfs2_dlm_next_res(struct ocfs2_lock_res *start, in ocfs2_dlm_next_res()
2747 struct ocfs2_lock_res *iter, *ret = NULL; in ocfs2_dlm_next_res()
2773 struct ocfs2_lock_res *iter; in ocfs2_dlm_seq_start()
2800 struct ocfs2_lock_res *iter = v; in ocfs2_dlm_seq_next()
2801 struct ocfs2_lock_res *dummy = &priv->p_iter_res; in ocfs2_dlm_seq_next()
2829 struct ocfs2_lock_res *lockres = v; in ocfs2_dlm_seq_show()
2922 struct ocfs2_lock_res *res = &priv->p_iter_res; in ocfs2_dlm_debug_release()
3084 struct ocfs2_lock_res *lockres) in ocfs2_drop_lock()
3166 struct ocfs2_lock_res *lockres);
3175 struct ocfs2_lock_res *lockres) in ocfs2_mark_lockres_freeing()
3235 struct ocfs2_lock_res *lockres) in ocfs2_simple_drop_lockres()
3284 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_prepare_downconvert()
3314 struct ocfs2_lock_res *lockres, in ocfs2_downconvert_lock()
3348 struct ocfs2_lock_res *lockres) in ocfs2_prepare_cancel_convert()
3377 struct ocfs2_lock_res *lockres) in ocfs2_cancel_convert()
3394 struct ocfs2_lock_res *lockres, in ocfs2_unblock_lock()
3590 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_data_convert_worker()
3640 struct ocfs2_lock_res *lockres, in ocfs2_ci_checkpointed()
3655 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_check_meta_downconvert()
3663 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres) in ocfs2_set_meta_lvb()
3676 struct ocfs2_lock_res *lockres) in ocfs2_dentry_post_unlock()
3701 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_dentry_convert_worker()
3794 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_check_refcount_downconvert()
3803 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_refcount_convert_worker()
3814 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres) in ocfs2_set_qinfo_lvb()
3833 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_unlock()
3845 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_refresh_qinfo()
3888 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_lock()
3922 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_lock()
3942 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_unlock()
3950 struct ocfs2_lock_res *lockres) in ocfs2_process_blocked_lock()
3996 struct ocfs2_lock_res *lockres) in ocfs2_schedule_blocked_lock()
4026 struct ocfs2_lock_res *lockres; in ocfs2_downconvert_thread_do_work()
4042 struct ocfs2_lock_res, l_blocked_list); in ocfs2_downconvert_thread_do_work()