/linux-6.6.21/fs/ocfs2/dlmfs/ |
D | userdlm.c | 35 static inline int user_check_wait_flag(struct user_lock_res *lockres, in user_check_wait_flag() argument 40 spin_lock(&lockres->l_lock); in user_check_wait_flag() 41 ret = lockres->l_flags & flag; in user_check_wait_flag() 42 spin_unlock(&lockres->l_lock); in user_check_wait_flag() 47 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) in user_wait_on_busy_lock() argument 50 wait_event(lockres->l_event, in user_wait_on_busy_lock() 51 !user_check_wait_flag(lockres, USER_LOCK_BUSY)); in user_wait_on_busy_lock() 54 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) in user_wait_on_blocked_lock() argument 57 wait_event(lockres->l_event, in user_wait_on_blocked_lock() 58 !user_check_wait_flag(lockres, USER_LOCK_BLOCKED)); in user_wait_on_blocked_lock() [all …]
|
D | userdlm.h | 56 void user_dlm_lock_res_init(struct user_lock_res *lockres, 58 int user_dlm_destroy_lock(struct user_lock_res *lockres); 59 int user_dlm_cluster_lock(struct user_lock_res *lockres, 62 void user_dlm_cluster_unlock(struct user_lock_res *lockres,
|
D | dlmfs.c | 299 struct user_lock_res *lockres; in dlmfs_evict_inode() local 307 lockres = &ip->ip_lockres; in dlmfs_evict_inode() 310 spin_lock(&lockres->l_lock); in dlmfs_evict_inode() 311 teardown = !!(lockres->l_flags & USER_LOCK_IN_TEARDOWN); in dlmfs_evict_inode() 312 spin_unlock(&lockres->l_lock); in dlmfs_evict_inode() 314 status = user_dlm_destroy_lock(lockres); in dlmfs_evict_inode()
|
/linux-6.6.21/fs/ocfs2/ |
D | dlmglue.c | 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); [all …]
|
D | locks.c | 28 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() local 37 if (lockres->l_flags & OCFS2_LOCK_ATTACHED && in ocfs2_do_flock() 38 lockres->l_level > LKM_NLMODE) { in ocfs2_do_flock() 42 if (lockres->l_level == LKM_EXMODE) in ocfs2_do_flock()
|
D | dlmglue.h | 115 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, 118 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, 120 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, 186 struct ocfs2_lock_res *lockres); 188 struct ocfs2_lock_res *lockres);
|
/linux-6.6.21/fs/ocfs2/dlm/ |
D | dlmthread.c | 281 struct dlm_lock_resource *lockres; in dlm_run_purge_list() local 289 lockres = list_entry(dlm->purge_list.next, in dlm_run_purge_list() 292 spin_lock(&lockres->spinlock); in dlm_run_purge_list() 294 purge_jiffies = lockres->last_used + in dlm_run_purge_list() 304 spin_unlock(&lockres->spinlock); in dlm_run_purge_list() 312 unused = __dlm_lockres_unused(lockres); in dlm_run_purge_list() 314 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list() 315 (lockres->inflight_assert_workers != 0)) { in dlm_run_purge_list() 318 dlm->name, lockres->lockname.len, in dlm_run_purge_list() 319 lockres->lockname.name, in dlm_run_purge_list() [all …]
|
D | dlmlock.c | 360 lock->lockres = res; in dlm_lock_attach_lockres() 368 res = lock->lockres; in dlm_lock_detach_lockres() 370 lock->lockres = NULL; in dlm_lock_detach_lockres() 593 res = lock->lockres; in dlmlock()
|
D | dlmast.c | 81 res = lock->lockres; in __dlm_queue_ast() 149 res = lock->lockres; in __dlm_queue_bast()
|
D | dlmcommon.h | 201 struct dlm_lock_resource *lockres; member 208 struct dlm_lock_resource *lockres; member 342 struct dlm_lock_resource *lockres; member
|
D | dlmunlock.c | 607 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock() 616 res = lock->lockres; in dlmunlock()
|
D | dlmrecovery.c | 1199 lock->lockres->lockname.len, lock->lockres->lockname.name, in dlm_prepare_lvb_for_migration() 1201 dlm_print_one_lock_resource(lock->lockres); in dlm_prepare_lvb_for_migration() 1509 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler() 1545 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
|
D | dlmdebug.c | 118 dlm_print_one_lock_resource(lockid->lockres); in dlm_print_one_lock()
|
D | dlmmaster.c | 2061 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master() 2091 res = item->u.am.lockres; in dlm_assert_master_worker()
|
/linux-6.6.21/drivers/md/ |
D | md-cluster.c | 258 static void add_resync_info(struct dlm_lock_resource *lockres, in add_resync_info() argument 263 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info() 269 struct dlm_lock_resource *lockres) in read_resync_info() argument 275 dlm_lock_sync(lockres, DLM_LOCK_CR); in read_resync_info() 276 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info() 282 dlm_unlock_sync(lockres); in read_resync_info()
|