/linux-4.4.14/fs/ocfs2/dlmfs/ |
D | userdlm.c | 50 static inline int user_check_wait_flag(struct user_lock_res *lockres, in user_check_wait_flag() argument 55 spin_lock(&lockres->l_lock); in user_check_wait_flag() 56 ret = lockres->l_flags & flag; in user_check_wait_flag() 57 spin_unlock(&lockres->l_lock); in user_check_wait_flag() 62 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) in user_wait_on_busy_lock() argument 65 wait_event(lockres->l_event, in user_wait_on_busy_lock() 66 !user_check_wait_flag(lockres, USER_LOCK_BUSY)); in user_wait_on_busy_lock() 69 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) in user_wait_on_blocked_lock() argument 72 wait_event(lockres->l_event, in user_wait_on_blocked_lock() 73 !user_check_wait_flag(lockres, USER_LOCK_BLOCKED)); in user_wait_on_blocked_lock() [all …]
|
D | userdlm.h | 72 void user_dlm_lock_res_init(struct user_lock_res *lockres, 74 int user_dlm_destroy_lock(struct user_lock_res *lockres); 75 int user_dlm_cluster_lock(struct user_lock_res *lockres, 78 void user_dlm_cluster_unlock(struct user_lock_res *lockres,
|
/linux-4.4.14/fs/ocfs2/ |
D | dlmglue.c | 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); [all …]
|
D | locks.c | 43 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() local 52 if (lockres->l_flags & OCFS2_LOCK_ATTACHED && in ocfs2_do_flock() 53 lockres->l_level > LKM_NLMODE) { in ocfs2_do_flock() 56 if (lockres->l_level == LKM_EXMODE) in ocfs2_do_flock()
|
D | dlmglue.h | 100 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, 103 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, 105 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, 161 struct ocfs2_lock_res *lockres); 163 struct ocfs2_lock_res *lockres);
|
/linux-4.4.14/fs/ocfs2/dlm/ |
D | dlmthread.c | 239 struct dlm_lock_resource *lockres; in dlm_run_purge_list() local 247 lockres = list_entry(dlm->purge_list.next, in dlm_run_purge_list() 250 spin_lock(&lockres->spinlock); in dlm_run_purge_list() 252 purge_jiffies = lockres->last_used + in dlm_run_purge_list() 262 spin_unlock(&lockres->spinlock); in dlm_run_purge_list() 270 unused = __dlm_lockres_unused(lockres); in dlm_run_purge_list() 272 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list() 273 (lockres->inflight_assert_workers != 0)) { in dlm_run_purge_list() 276 dlm->name, lockres->lockname.len, in dlm_run_purge_list() 277 lockres->lockname.name, in dlm_run_purge_list() [all …]
|
D | dlmlock.c | 378 lock->lockres = res; in dlm_lock_attach_lockres() 386 res = lock->lockres; in dlm_lock_detach_lockres() 388 lock->lockres = NULL; in dlm_lock_detach_lockres() 611 res = lock->lockres; in dlmlock()
|
D | dlmast.c | 98 res = lock->lockres; in __dlm_queue_ast() 166 res = lock->lockres; in __dlm_queue_bast()
|
D | dlmcommon.h | 221 struct dlm_lock_resource *lockres; member 228 struct dlm_lock_resource *lockres; member 361 struct dlm_lock_resource *lockres; member
|
D | dlmunlock.c | 610 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock() 619 res = lock->lockres; in dlmunlock()
|
D | dlmrecovery.c | 1218 lock->lockres->lockname.len, lock->lockres->lockname.name, in dlm_prepare_lvb_for_migration() 1220 dlm_print_one_lock_resource(lock->lockres); in dlm_prepare_lvb_for_migration() 1500 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler() 1536 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
|
D | dlmdebug.c | 135 dlm_print_one_lock_resource(lockid->lockres); in dlm_print_one_lock()
|
D | dlmmaster.c | 2099 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master() 2129 res = item->u.am.lockres; in dlm_assert_master_worker()
|
/linux-4.4.14/drivers/md/ |
D | md-cluster.c | 198 static void add_resync_info(struct dlm_lock_resource *lockres, in add_resync_info() argument 203 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info() 208 static struct suspend_info *read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) in read_resync_info() argument 214 dlm_lock_sync(lockres, DLM_LOCK_CR); in read_resync_info() 215 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info() 224 dlm_unlock_sync(lockres); in read_resync_info()
|
/linux-4.4.14/fs/lockd/ |
D | svc4proc.c | 491 PROC(lock_res, lockres, norep, res, void, 1),
|
D | svcproc.c | 535 PROC(lock_res, lockres, norep, res, void, 1),
|