/Linux-v4.19/fs/ocfs2/dlmfs/ |
D | userdlm.c | 51 static inline int user_check_wait_flag(struct user_lock_res *lockres, in user_check_wait_flag() argument 56 spin_lock(&lockres->l_lock); in user_check_wait_flag() 57 ret = lockres->l_flags & flag; in user_check_wait_flag() 58 spin_unlock(&lockres->l_lock); in user_check_wait_flag() 63 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) in user_wait_on_busy_lock() argument 66 wait_event(lockres->l_event, in user_wait_on_busy_lock() 67 !user_check_wait_flag(lockres, USER_LOCK_BUSY)); in user_wait_on_busy_lock() 70 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) in user_wait_on_blocked_lock() argument 73 wait_event(lockres->l_event, in user_wait_on_blocked_lock() 74 !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-v4.19/fs/ocfs2/ |
D | dlmglue.c | 73 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres); 74 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres); 75 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres); 76 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres); 103 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, 105 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres); 107 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, 110 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, 114 struct ocfs2_lock_res *lockres); 116 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 | 131 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, 134 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, 136 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, 202 struct ocfs2_lock_res *lockres); 204 struct ocfs2_lock_res *lockres);
|
/Linux-v4.19/fs/ocfs2/dlm/ |
D | dlmthread.c | 300 struct dlm_lock_resource *lockres; in dlm_run_purge_list() local 308 lockres = list_entry(dlm->purge_list.next, in dlm_run_purge_list() 311 spin_lock(&lockres->spinlock); in dlm_run_purge_list() 313 purge_jiffies = lockres->last_used + in dlm_run_purge_list() 323 spin_unlock(&lockres->spinlock); in dlm_run_purge_list() 331 unused = __dlm_lockres_unused(lockres); in dlm_run_purge_list() 333 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list() 334 (lockres->inflight_assert_workers != 0)) { in dlm_run_purge_list() 337 dlm->name, lockres->lockname.len, in dlm_run_purge_list() 338 lockres->lockname.name, in dlm_run_purge_list() [all …]
|
D | dlmlock.c | 377 lock->lockres = res; in dlm_lock_attach_lockres() 385 res = lock->lockres; in dlm_lock_detach_lockres() 387 lock->lockres = NULL; in dlm_lock_detach_lockres() 610 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 | 222 struct dlm_lock_resource *lockres; member 229 struct dlm_lock_resource *lockres; member 363 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 | 1225 lock->lockres->lockname.len, lock->lockres->lockname.name, in dlm_prepare_lvb_for_migration() 1227 dlm_print_one_lock_resource(lock->lockres); in dlm_prepare_lvb_for_migration() 1535 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler() 1571 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 | 2078 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master() 2108 res = item->u.am.lockres; in dlm_assert_master_worker()
|
/Linux-v4.19/drivers/md/ |
D | md-cluster.c | 263 static void add_resync_info(struct dlm_lock_resource *lockres, in add_resync_info() argument 268 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info() 273 static struct suspend_info *read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) in read_resync_info() argument 279 dlm_lock_sync(lockres, DLM_LOCK_CR); in read_resync_info() 280 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info() 289 dlm_unlock_sync(lockres); in read_resync_info()
|
/Linux-v4.19/fs/lockd/ |
D | svc4proc.c | 524 PROC(lock_res, lockres, norep, res, void, 1),
|
D | svcproc.c | 568 PROC(lock_res, lockres, norep, res, void, 1),
|