Home
last modified time | relevance | path

Searched refs:lockres (Results 1 – 13 of 13) sorted by relevance

/fs/ocfs2/dlmfs/
Duserdlm.c37 static inline int user_check_wait_flag(struct user_lock_res *lockres, in user_check_wait_flag() argument
42 spin_lock(&lockres->l_lock); in user_check_wait_flag()
43 ret = lockres->l_flags & flag; in user_check_wait_flag()
44 spin_unlock(&lockres->l_lock); in user_check_wait_flag()
49 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) in user_wait_on_busy_lock() argument
52 wait_event(lockres->l_event, in user_wait_on_busy_lock()
53 !user_check_wait_flag(lockres, USER_LOCK_BUSY)); in user_wait_on_busy_lock()
56 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) in user_wait_on_blocked_lock() argument
59 wait_event(lockres->l_event, in user_wait_on_blocked_lock()
60 !user_check_wait_flag(lockres, USER_LOCK_BLOCKED)); in user_wait_on_blocked_lock()
[all …]
Duserdlm.h58 void user_dlm_lock_res_init(struct user_lock_res *lockres,
60 int user_dlm_destroy_lock(struct user_lock_res *lockres);
61 int user_dlm_cluster_lock(struct user_lock_res *lockres,
64 void user_dlm_cluster_unlock(struct user_lock_res *lockres,
/fs/ocfs2/
Ddlmglue.c59 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);
[all …]
Dlocks.c29 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() local
38 if (lockres->l_flags & OCFS2_LOCK_ATTACHED && in ocfs2_do_flock()
39 lockres->l_level > LKM_NLMODE) { in ocfs2_do_flock()
43 if (lockres->l_level == LKM_EXMODE) in ocfs2_do_flock()
Ddlmglue.h117 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres,
120 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres,
122 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres,
188 struct ocfs2_lock_res *lockres);
190 struct ocfs2_lock_res *lockres);
/fs/ocfs2/dlm/
Ddlmthread.c283 struct dlm_lock_resource *lockres; in dlm_run_purge_list() local
291 lockres = list_entry(dlm->purge_list.next, in dlm_run_purge_list()
294 spin_lock(&lockres->spinlock); in dlm_run_purge_list()
296 purge_jiffies = lockres->last_used + in dlm_run_purge_list()
306 spin_unlock(&lockres->spinlock); in dlm_run_purge_list()
314 unused = __dlm_lockres_unused(lockres); in dlm_run_purge_list()
316 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list()
317 (lockres->inflight_assert_workers != 0)) { in dlm_run_purge_list()
320 dlm->name, lockres->lockname.len, in dlm_run_purge_list()
321 lockres->lockname.name, in dlm_run_purge_list()
[all …]
Ddlmlock.c362 lock->lockres = res; in dlm_lock_attach_lockres()
370 res = lock->lockres; in dlm_lock_detach_lockres()
372 lock->lockres = NULL; in dlm_lock_detach_lockres()
595 res = lock->lockres; in dlmlock()
Ddlmcommon.h206 struct dlm_lock_resource *lockres; member
213 struct dlm_lock_resource *lockres; member
347 struct dlm_lock_resource *lockres; member
Ddlmast.c83 res = lock->lockres; in __dlm_queue_ast()
151 res = lock->lockres; in __dlm_queue_bast()
Ddlmunlock.c610 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock()
619 res = lock->lockres; in dlmunlock()
Ddlmrecovery.c1208 lock->lockres->lockname.len, lock->lockres->lockname.name, in dlm_prepare_lvb_for_migration()
1210 dlm_print_one_lock_resource(lock->lockres); in dlm_prepare_lvb_for_migration()
1518 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler()
1554 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
Ddlmdebug.c120 dlm_print_one_lock_resource(lockid->lockres); in dlm_print_one_lock()
Ddlmmaster.c2063 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master()
2093 res = item->u.am.lockres; in dlm_assert_master_worker()