• Home
  • Raw
  • Download

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) in ocfs2_dump_meta_lvb_info()
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) in ocfs2_is_inode_lock()
294 static inline struct ocfs2_lock_res *ocfs2_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb) in ocfs2_lksb_to_lock_res()
296 return container_of(lksb, struct ocfs2_lock_res, l_lksb); in ocfs2_lksb_to_lock_res()
299 static inline struct inode *ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_inode()
306 static inline struct ocfs2_dentry_lock *ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_dl()
313 static inline struct ocfs2_mem_dqinfo *ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres) in ocfs2_lock_res_qinfo()
321 ocfs2_lock_res_refcount_tree(struct ocfs2_lock_res *res) in ocfs2_lock_res_refcount_tree()
326 static inline struct ocfs2_super *ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_lockres_osb()
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, in ocfs2_cluster_unlock()
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, in ocfs2_add_lockres_tracking()
417 static void ocfs2_remove_lockres_tracking(struct ocfs2_lock_res *res) in ocfs2_remove_lockres_tracking()
426 static void ocfs2_init_lock_stats(struct ocfs2_lock_res *res) in ocfs2_init_lock_stats()
434 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level, in ocfs2_update_lock_stats()
468 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_refresh()
473 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_wait()
493 static inline void ocfs2_init_lock_stats(struct ocfs2_lock_res *res) in ocfs2_init_lock_stats()
496 static inline void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, in ocfs2_update_lock_stats()
500 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_refresh()
503 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) in ocfs2_track_lock_wait()
512 struct ocfs2_lock_res *res, in ocfs2_lock_res_init_common()
541 void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res) in ocfs2_lock_res_init_once()
544 memset(res, 0, sizeof(struct ocfs2_lock_res)); in ocfs2_lock_res_init_once()
552 void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_inode_lock_res_init()
580 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_inode_osb()
587 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_qinfo_osb()
594 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_file_osb()
601 static __u64 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres) in ocfs2_get_dentry_lock_ino()
611 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres) in ocfs2_get_dentry_osb()
624 struct ocfs2_lock_res *lockres = &dl->dl_lockres; in ocfs2_dentry_lock_res_init()
658 static void ocfs2_super_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_super_lock_res_init()
670 static void ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_rename_lock_res_init()
681 static void ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_nfs_sync_lock_res_init()
700 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; in ocfs2_trim_fs_lock_res_init()
713 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; in ocfs2_trim_fs_lock_res_uninit()
721 static void ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res, in ocfs2_orphan_scan_lock_res_init()
730 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_file_lock_res_init()
745 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_qinfo_lock_res_init()
756 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, in ocfs2_refcount_lock_res_init()
767 void ocfs2_lock_res_free(struct ocfs2_lock_res *res) in ocfs2_lock_res_free()
800 static inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres, in ocfs2_add_holder()
812 ocfs2_pid_holder(struct ocfs2_lock_res *lockres, in ocfs2_pid_holder()
828 static inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, in ocfs2_remove_holder()
839 static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, in ocfs2_inc_holders()
856 static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres, in ocfs2_dec_holders()
889 static void lockres_set_flags(struct ocfs2_lock_res *lockres, in lockres_set_flags()
908 static void lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or) in lockres_or_flags()
912 static void lockres_clear_flags(struct ocfs2_lock_res *lockres, in lockres_clear_flags()
918 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_downconvert_action()
934 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_convert_action()
964 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) in ocfs2_generic_handle_attach_action()
979 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, in ocfs2_generic_handle_bast()
1067 static void __lockres_clear_pending(struct ocfs2_lock_res *lockres, in __lockres_clear_pending()
1093 static void lockres_clear_pending(struct ocfs2_lock_res *lockres, in lockres_clear_pending()
1104 static unsigned int lockres_set_pending(struct ocfs2_lock_res *lockres) in lockres_set_pending()
1116 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_blocking_ast()
1147 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_locking_ast()
1213 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_unlock_ast()
1288 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, in ocfs2_recover_from_dlm_error()
1310 struct ocfs2_lock_res *lockres, in ocfs2_lock_create()
1352 static inline int ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres, in ocfs2_check_wait_flag()
1365 static inline void ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres) in ocfs2_wait_on_busy_lock()
1372 static inline void ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres) in ocfs2_wait_on_refreshing_lock()
1382 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres, in ocfs2_may_continue_on_blocked_lock()
1405 static void lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, in lockres_add_mask_waiter()
1422 static int __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, in __lockres_remove_mask_waiter()
1440 static int lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, in lockres_remove_mask_waiter()
1455 struct ocfs2_lock_res *lockres) in ocfs2_wait_for_mask_interruptible()
1470 struct ocfs2_lock_res *lockres, in __ocfs2_cluster_lock()
1673 struct ocfs2_lock_res *lockres, in ocfs2_cluster_lock()
1684 struct ocfs2_lock_res *lockres, in __ocfs2_cluster_unlock()
1701 struct ocfs2_lock_res *lockres, in ocfs2_create_new_lock()
1767 struct ocfs2_lock_res *lockres; in ocfs2_rw_lock()
1791 struct ocfs2_lock_res *lockres; in ocfs2_try_rw_lock()
1812 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_unlock()
1829 struct ocfs2_lock_res *lockres; in ocfs2_open_lock()
1851 struct ocfs2_lock_res *lockres; in ocfs2_try_open_lock()
1888 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; in ocfs2_open_unlock()
1906 static int ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres, in ocfs2_flock_handle_signal()
1980 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock()
2076 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_unlock()
2115 struct ocfs2_lock_res *lockres) in ocfs2_downconvert_on_unlock()
2164 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in __ocfs2_stuff_meta_lvb()
2210 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in ocfs2_refresh_inode_from_lvb()
2246 struct ocfs2_lock_res *lockres) in ocfs2_meta_lvb_is_trustable()
2264 static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) in ocfs2_should_refresh_lock_res()
2295 static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres, in ocfs2_complete_lock_res_refresh()
2315 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in ocfs2_inode_lock_update()
2424 struct ocfs2_lock_res *lockres = NULL; in ocfs2_inode_lock_full_nested()
2611 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; in ocfs2_inode_unlock()
2670 struct ocfs2_lock_res *lockres; in ocfs2_inode_lock_tracker()
2726 struct ocfs2_lock_res *lockres; in ocfs2_inode_unlock_tracker()
2742 struct ocfs2_lock_res *lockres; in ocfs2_orphan_scan_lock()
2769 struct ocfs2_lock_res *lockres; in ocfs2_orphan_scan_unlock()
2786 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; in ocfs2_super_lock()
2824 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; in ocfs2_super_unlock()
2833 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; in ocfs2_rename_lock()
2850 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; in ocfs2_rename_unlock()
2859 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; in ocfs2_nfs_sync_lock()
2888 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; in ocfs2_nfs_sync_unlock()
2904 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; in ocfs2_trim_fs_lock()
2944 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; in ocfs2_trim_fs_unlock()
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, in ocfs2_dlm_next_res()
3048 struct ocfs2_lock_res *iter, *ret = NULL; in ocfs2_dlm_next_res()
3074 struct ocfs2_lock_res *iter; in ocfs2_dlm_seq_start()
3101 struct ocfs2_lock_res *iter = v; in ocfs2_dlm_seq_next()
3102 struct ocfs2_lock_res *dummy = &priv->p_iter_res; in ocfs2_dlm_seq_next()
3132 struct ocfs2_lock_res *lockres = v; in ocfs2_dlm_seq_show()
3261 struct ocfs2_lock_res *res = &priv->p_iter_res; in ocfs2_dlm_debug_release()
3406 struct ocfs2_lock_res *lockres) in ocfs2_drop_lock()
3488 struct ocfs2_lock_res *lockres);
3497 struct ocfs2_lock_res *lockres) in ocfs2_mark_lockres_freeing()
3557 struct ocfs2_lock_res *lockres) in ocfs2_simple_drop_lockres()
3606 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_prepare_downconvert()
3636 struct ocfs2_lock_res *lockres, in ocfs2_downconvert_lock()
3680 struct ocfs2_lock_res *lockres) in ocfs2_prepare_cancel_convert()
3709 struct ocfs2_lock_res *lockres) in ocfs2_cancel_convert()
3726 struct ocfs2_lock_res *lockres, in ocfs2_unblock_lock()
3922 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_data_convert_worker()
3975 struct ocfs2_lock_res *lockres, in ocfs2_ci_checkpointed()
3990 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_check_meta_downconvert()
3998 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres) in ocfs2_set_meta_lvb()
4011 struct ocfs2_lock_res *lockres) in ocfs2_dentry_post_unlock()
4036 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_dentry_convert_worker()
4129 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres, in ocfs2_check_refcount_downconvert()
4138 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres, in ocfs2_refcount_convert_worker()
4149 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres) in ocfs2_set_qinfo_lvb()
4168 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_unlock()
4180 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_refresh_qinfo()
4223 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_lock()
4257 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_lock()
4277 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_unlock()
4285 struct ocfs2_lock_res *lockres) in ocfs2_process_blocked_lock()
4331 struct ocfs2_lock_res *lockres) in ocfs2_schedule_blocked_lock()
4361 struct ocfs2_lock_res *lockres; in ocfs2_downconvert_thread_do_work()
4377 struct ocfs2_lock_res, l_blocked_list); in ocfs2_downconvert_thread_do_work()