Lines Matching refs:ocfs2_lock_res
58 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres);
59 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres);
60 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres);
61 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres);
88 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
90 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres);
92 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
95 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
99 struct ocfs2_lock_res *lockres);
101 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres);
103 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres,
105 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres,
114 struct ocfs2_lock_res *lockres)
151 * Translate an ocfs2_lock_res * into an ocfs2_super *. Define
154 struct ocfs2_super * (*get_osb)(struct ocfs2_lock_res *);
165 void (*post_unlock)(struct ocfs2_super *, struct ocfs2_lock_res *);
177 int (*check_downconvert)(struct ocfs2_lock_res *, int);
188 void (*set_lvb)(struct ocfs2_lock_res *);
199 int (*downconvert_worker)(struct ocfs2_lock_res *, int);
286 static inline int ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres)
293 static inline struct ocfs2_lock_res *ocfs2_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb)
295 return container_of(lksb, struct ocfs2_lock_res, l_lksb);
298 static inline struct inode *ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres)
305 static inline struct ocfs2_dentry_lock *ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres)
312 static inline struct ocfs2_mem_dqinfo *ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres)
320 ocfs2_lock_res_refcount_tree(struct ocfs2_lock_res *res)
325 static inline struct ocfs2_super *ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres)
334 struct ocfs2_lock_res *lockres,
337 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres,
340 struct ocfs2_lock_res *lockres,
343 struct ocfs2_lock_res *lockres,
349 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres);
350 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres);
351 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres);
352 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level);
354 struct ocfs2_lock_res *lockres);
355 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
368 struct ocfs2_lock_res *lockres);
373 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres,
376 struct ocfs2_lock_res *lockres,
381 struct ocfs2_lock_res *lockres);
383 struct ocfs2_lock_res *lockres);
406 static void ocfs2_add_lockres_tracking(struct ocfs2_lock_res *res,
416 static void ocfs2_remove_lockres_tracking(struct ocfs2_lock_res *res)
425 static void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
433 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
467 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres)
472 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres)
492 static inline void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
495 static inline void ocfs2_update_lock_stats(struct ocfs2_lock_res *res,
499 static inline void ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres)
502 static inline void ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres)
511 struct ocfs2_lock_res *res,
540 void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res)
543 memset(res, 0, sizeof(struct ocfs2_lock_res));
551 void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res,
579 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres)
586 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres)
593 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres)
600 static __u64 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres)
610 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres)
623 struct ocfs2_lock_res *lockres = &dl->dl_lockres;
657 static void ocfs2_super_lock_res_init(struct ocfs2_lock_res *res,
669 static void ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res,
680 static void ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res,
699 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
712 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
720 static void ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res,
729 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres,
744 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres,
755 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres,
766 void ocfs2_lock_res_free(struct ocfs2_lock_res *res)
799 static inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres,
811 ocfs2_pid_holder(struct ocfs2_lock_res *lockres,
827 static inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres,
838 static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres,
855 static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres,
888 static void lockres_set_flags(struct ocfs2_lock_res *lockres,
907 static void lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or)
911 static void lockres_clear_flags(struct ocfs2_lock_res *lockres,
917 static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres)
933 static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres)
963 static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres)
978 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres,
1066 static void __lockres_clear_pending(struct ocfs2_lock_res *lockres,
1092 static void lockres_clear_pending(struct ocfs2_lock_res *lockres,
1103 static unsigned int lockres_set_pending(struct ocfs2_lock_res *lockres)
1115 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1146 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1212 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1287 static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
1309 struct ocfs2_lock_res *lockres,
1351 static inline int ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres,
1364 static inline void ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres)
1371 static inline void ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres)
1381 static inline int ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres,
1404 static void lockres_add_mask_waiter(struct ocfs2_lock_res *lockres,
1421 static int __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres,
1439 static int lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres,
1454 struct ocfs2_lock_res *lockres)
1469 struct ocfs2_lock_res *lockres,
1672 struct ocfs2_lock_res *lockres,
1683 struct ocfs2_lock_res *lockres,
1700 struct ocfs2_lock_res *lockres,
1766 struct ocfs2_lock_res *lockres;
1790 struct ocfs2_lock_res *lockres;
1811 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres;
1828 struct ocfs2_lock_res *lockres;
1850 struct ocfs2_lock_res *lockres;
1887 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres;
1905 static int ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres,
1979 struct ocfs2_lock_res *lockres = &fp->fp_flock;
2075 struct ocfs2_lock_res *lockres = &fp->fp_flock;
2114 struct ocfs2_lock_res *lockres)
2163 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2210 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2251 struct ocfs2_lock_res *lockres)
2269 static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres)
2300 static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres,
2320 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2434 struct ocfs2_lock_res *lockres = NULL;
2621 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres;
2680 struct ocfs2_lock_res *lockres;
2736 struct ocfs2_lock_res *lockres;
2752 struct ocfs2_lock_res *lockres;
2779 struct ocfs2_lock_res *lockres;
2796 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2834 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2843 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres;
2860 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres;
2869 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres;
2898 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres;
2914 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
2954 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres;
3051 struct ocfs2_lock_res p_iter_res;
3052 struct ocfs2_lock_res p_tmp_res;
3055 static struct ocfs2_lock_res *ocfs2_dlm_next_res(struct ocfs2_lock_res *start,
3058 struct ocfs2_lock_res *iter, *ret = NULL;
3084 struct ocfs2_lock_res *iter;
3111 struct ocfs2_lock_res *iter = v;
3112 struct ocfs2_lock_res *dummy = &priv->p_iter_res;
3142 struct ocfs2_lock_res *lockres = v;
3271 struct ocfs2_lock_res *res = &priv->p_iter_res;
3418 struct ocfs2_lock_res *lockres)
3500 struct ocfs2_lock_res *lockres);
3509 struct ocfs2_lock_res *lockres)
3569 struct ocfs2_lock_res *lockres)
3618 static unsigned int ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres,
3648 struct ocfs2_lock_res *lockres,
3692 struct ocfs2_lock_res *lockres)
3721 struct ocfs2_lock_res *lockres)
3738 struct ocfs2_lock_res *lockres,
3945 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
3998 struct ocfs2_lock_res *lockres,
4013 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
4021 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres)
4034 struct ocfs2_lock_res *lockres)
4059 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
4152 static int ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres,
4161 static int ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres,
4172 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres)
4191 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4203 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4246 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock;
4280 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres;
4300 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres;
4308 struct ocfs2_lock_res *lockres)
4354 struct ocfs2_lock_res *lockres)
4384 struct ocfs2_lock_res *lockres;
4400 struct ocfs2_lock_res, l_blocked_list);