/kernel/linux/linux-5.10/fs/ocfs2/dlmfs/ |
H A D | userdlm.c | 37 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_BLOCKE in user_wait_on_blocked_lock() 65 cluster_connection_from_user_lockres(struct user_lock_res *lockres) cluster_connection_from_user_lockres() argument 76 user_dlm_inode_from_user_lockres(struct user_lock_res *lockres) user_dlm_inode_from_user_lockres() argument 86 user_recover_from_dlm_error(struct user_lock_res *lockres) user_recover_from_dlm_error() argument 115 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_ast() local 155 user_dlm_grab_inode_ref(struct user_lock_res *lockres) user_dlm_grab_inode_ref() argument 165 __user_dlm_queue_lockres(struct user_lock_res *lockres) __user_dlm_queue_lockres() argument 177 __user_dlm_cond_queue_lockres(struct user_lock_res *lockres) __user_dlm_cond_queue_lockres() argument 203 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_bast() local 221 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_unlock_ast() local 278 user_dlm_drop_inode_ref(struct user_lock_res *lockres) user_dlm_drop_inode_ref() argument 288 struct user_lock_res *lockres = user_dlm_unblock_lock() local 385 user_dlm_inc_holders(struct user_lock_res *lockres, int level) user_dlm_inc_holders() argument 404 user_may_continue_on_blocked_lock(struct user_lock_res *lockres, int wanted) user_may_continue_on_blocked_lock() argument 412 user_dlm_cluster_lock(struct user_lock_res *lockres, int level, int lkm_flags) user_dlm_cluster_lock() argument 504 user_dlm_dec_holders(struct user_lock_res *lockres, int level) user_dlm_dec_holders() argument 521 user_dlm_cluster_unlock(struct user_lock_res *lockres, int level) user_dlm_cluster_unlock() argument 541 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; user_dlm_write_lvb() local 557 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; user_dlm_read_lvb() local 574 user_dlm_lock_res_init(struct user_lock_res *lockres, struct dentry *dentry) user_dlm_lock_res_init() argument 594 user_dlm_destroy_lock(struct user_lock_res *lockres) user_dlm_destroy_lock() argument [all...] |
H A D | userdlm.h | 58 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,
|
/kernel/linux/linux-6.6/fs/ocfs2/dlmfs/ |
H A 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_BLOCKE in user_wait_on_blocked_lock() 63 cluster_connection_from_user_lockres(struct user_lock_res *lockres) cluster_connection_from_user_lockres() argument 74 user_dlm_inode_from_user_lockres(struct user_lock_res *lockres) user_dlm_inode_from_user_lockres() argument 84 user_recover_from_dlm_error(struct user_lock_res *lockres) user_recover_from_dlm_error() argument 113 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_ast() local 153 user_dlm_grab_inode_ref(struct user_lock_res *lockres) user_dlm_grab_inode_ref() argument 163 __user_dlm_queue_lockres(struct user_lock_res *lockres) __user_dlm_queue_lockres() argument 175 __user_dlm_cond_queue_lockres(struct user_lock_res *lockres) __user_dlm_cond_queue_lockres() argument 201 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_bast() local 219 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); user_unlock_ast() local 276 user_dlm_drop_inode_ref(struct user_lock_res *lockres) user_dlm_drop_inode_ref() argument 286 struct user_lock_res *lockres = user_dlm_unblock_lock() local 383 user_dlm_inc_holders(struct user_lock_res *lockres, int level) user_dlm_inc_holders() argument 402 user_may_continue_on_blocked_lock(struct user_lock_res *lockres, int wanted) user_may_continue_on_blocked_lock() argument 410 user_dlm_cluster_lock(struct user_lock_res *lockres, int level, int lkm_flags) user_dlm_cluster_lock() argument 502 user_dlm_dec_holders(struct user_lock_res *lockres, int level) user_dlm_dec_holders() argument 519 user_dlm_cluster_unlock(struct user_lock_res *lockres, int level) user_dlm_cluster_unlock() argument 539 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; user_dlm_write_lvb() local 555 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; user_dlm_read_lvb() local 572 user_dlm_lock_res_init(struct user_lock_res *lockres, struct dentry *dentry) user_dlm_lock_res_init() argument 592 user_dlm_destroy_lock(struct user_lock_res *lockres) user_dlm_destroy_lock() argument [all...] |
H A 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,
|
H A 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() 498 * to acquire a lock, this basically destroys our lockres. */ in dlmfs_unlink()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A 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); 111 ocfs2_dump_meta_lvb_info(u64 level, const char *function, unsigned int line, struct ocfs2_lock_res *lockres) ocfs2_dump_meta_lvb_info() argument 286 ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) ocfs2_is_inode_lock() argument 298 ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) ocfs2_lock_res_inode() argument 305 ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres) ocfs2_lock_res_dl() argument 312 ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres) ocfs2_lock_res_qinfo() argument 325 ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres) ocfs2_get_lockres_osb() argument 342 ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level) ocfs2_cluster_unlock() argument 467 ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) ocfs2_track_lock_refresh() argument 472 ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) ocfs2_track_lock_wait() argument 499 ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) ocfs2_track_lock_refresh() argument 502 ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) ocfs2_track_lock_wait() argument 579 ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres) ocfs2_get_inode_osb() argument 586 ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres) ocfs2_get_qinfo_osb() argument 593 ocfs2_get_file_osb(struct ocfs2_lock_res *lockres) ocfs2_get_file_osb() argument 600 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres) ocfs2_get_dentry_lock_ino() argument 610 ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres) ocfs2_get_dentry_osb() argument 623 struct ocfs2_lock_res *lockres = &dl->dl_lockres; ocfs2_dentry_lock_res_init() local 699 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock_res_init() local 712 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock_res_uninit() local 729 ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_file_private *fp) ocfs2_file_lock_res_init() argument 744 ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_mem_dqinfo *info) ocfs2_qinfo_lock_res_init() argument 755 ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_super *osb, u64 ref_blkno, unsigned int generation) ocfs2_refcount_lock_res_init() argument 799 ocfs2_add_holder(struct ocfs2_lock_res *lockres, struct ocfs2_lock_holder *oh) ocfs2_add_holder() argument 811 ocfs2_pid_holder(struct ocfs2_lock_res *lockres, struct pid *pid) ocfs2_pid_holder() argument 827 ocfs2_remove_holder(struct ocfs2_lock_res *lockres, struct ocfs2_lock_holder *oh) ocfs2_remove_holder() argument 838 ocfs2_inc_holders(struct ocfs2_lock_res *lockres, int level) ocfs2_inc_holders() argument 855 ocfs2_dec_holders(struct ocfs2_lock_res *lockres, int level) ocfs2_dec_holders() argument 888 lockres_set_flags(struct ocfs2_lock_res *lockres, unsigned long newflags) lockres_set_flags() argument 907 lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or) lockres_or_flags() argument 911 lockres_clear_flags(struct ocfs2_lock_res *lockres, unsigned long clear) lockres_clear_flags() argument 917 ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_downconvert_action() argument 933 ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_convert_action() argument 963 ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_attach_action() argument 978 ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level) ocfs2_generic_handle_bast() argument 1066 __lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) __lockres_clear_pending() argument 1092 lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) lockres_clear_pending() argument 1103 lockres_set_pending(struct ocfs2_lock_res *lockres) lockres_set_pending() argument 1115 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_blocking_ast() local 1146 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_locking_ast() local 1212 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_unlock_ast() local 1287 ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, int convert) ocfs2_recover_from_dlm_error() argument 1308 ocfs2_lock_create(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 dlm_flags) ocfs2_lock_create() argument 1351 ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres, int flag) ocfs2_check_wait_flag() argument 1364 ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres) ocfs2_wait_on_busy_lock() argument 1371 ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres) ocfs2_wait_on_refreshing_lock() argument 1381 ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres, int wanted) ocfs2_may_continue_on_blocked_lock() argument 1404 lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw, unsigned long mask, unsigned long goal) lockres_add_mask_waiter() argument 1421 __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw) __lockres_remove_mask_waiter() argument 1439 lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw) lockres_remove_mask_waiter() argument 1453 ocfs2_wait_for_mask_interruptible(struct ocfs2_mask_waiter *mw, struct ocfs2_lock_res *lockres) ocfs2_wait_for_mask_interruptible() argument 1468 __ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags, int l_subclass, unsigned long caller_ip) __ocfs2_cluster_lock() argument 1671 ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags) ocfs2_cluster_lock() argument 1682 __ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, unsigned long caller_ip) __ocfs2_cluster_unlock() argument 1699 ocfs2_create_new_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int ex, int local) ocfs2_create_new_lock() argument 1766 struct ocfs2_lock_res *lockres; ocfs2_rw_lock() local 1790 struct ocfs2_lock_res *lockres; ocfs2_try_rw_lock() local 1811 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; ocfs2_rw_unlock() local 1828 struct ocfs2_lock_res *lockres; ocfs2_open_lock() local 1850 struct ocfs2_lock_res *lockres; ocfs2_try_open_lock() local 1887 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; ocfs2_open_unlock() local 1905 ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres, int level) ocfs2_flock_handle_signal() argument 1979 struct ocfs2_lock_res *lockres = &fp->fp_flock; ocfs2_file_lock() local 2075 struct ocfs2_lock_res *lockres = &fp->fp_flock; ocfs2_file_unlock() local 2113 ocfs2_downconvert_on_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_downconvert_on_unlock() argument 2163 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; __ocfs2_stuff_meta_lvb() local 2210 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; ocfs2_refresh_inode_from_lvb() local 2250 ocfs2_meta_lvb_is_trustable(struct inode *inode, struct ocfs2_lock_res *lockres) ocfs2_meta_lvb_is_trustable() argument 2269 ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) ocfs2_should_refresh_lock_res() argument 2300 ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres, int status) ocfs2_complete_lock_res_refresh() argument 2320 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; ocfs2_inode_lock_update() local 2434 struct ocfs2_lock_res *lockres = NULL; ocfs2_inode_lock_full_nested() local 2621 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; ocfs2_inode_unlock() local 2680 struct ocfs2_lock_res *lockres; ocfs2_inode_lock_tracker() local 2736 struct ocfs2_lock_res *lockres; ocfs2_inode_unlock_tracker() local 2752 struct ocfs2_lock_res *lockres; ocfs2_orphan_scan_lock() local 2779 struct ocfs2_lock_res *lockres; ocfs2_orphan_scan_unlock() local 2796 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; ocfs2_super_lock() local 2834 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; ocfs2_super_unlock() local 2843 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; ocfs2_rename_lock() local 2860 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; ocfs2_rename_unlock() local 2869 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; ocfs2_nfs_sync_lock() local 2898 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; ocfs2_nfs_sync_unlock() local 2914 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock() local 2954 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_unlock() local 3142 struct ocfs2_lock_res *lockres = v; ocfs2_dlm_seq_show() local 3417 ocfs2_drop_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_drop_lock() argument 3508 ocfs2_mark_lockres_freeing(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_mark_lockres_freeing() argument 3568 ocfs2_simple_drop_lockres(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_simple_drop_lockres() argument 3618 ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_prepare_downconvert() argument 3647 ocfs2_downconvert_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int new_level, int lvb, unsigned int generation) ocfs2_downconvert_lock() argument 3691 ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_prepare_cancel_convert() argument 3720 ocfs2_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_cancel_convert() argument 3737 ocfs2_unblock_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, struct ocfs2_unblock_ctl *ctl) ocfs2_unblock_lock() argument 3945 ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_data_convert_worker() argument 3997 ocfs2_ci_checkpointed(struct ocfs2_caching_info *ci, struct ocfs2_lock_res *lockres, int new_level) ocfs2_ci_checkpointed() argument 4013 ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_check_meta_downconvert() argument 4021 ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres) ocfs2_set_meta_lvb() argument 4033 ocfs2_dentry_post_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_dentry_post_unlock() argument 4059 ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_dentry_convert_worker() argument 4152 ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_check_refcount_downconvert() argument 4161 ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_refcount_convert_worker() argument 4172 ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres) ocfs2_set_qinfo_lvb() argument 4191 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_qinfo_unlock() local 4203 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_refresh_qinfo() local 4246 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_qinfo_lock() local 4280 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; ocfs2_refcount_lock() local 4300 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; ocfs2_refcount_unlock() local 4307 ocfs2_process_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_process_blocked_lock() argument 4353 ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_schedule_blocked_lock() argument 4384 struct ocfs2_lock_res *lockres; ocfs2_downconvert_thread_do_work() local [all...] |
H A 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()
|
H A 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);
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | dlmglue.c | 59 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); 112 ocfs2_dump_meta_lvb_info(u64 level, const char *function, unsigned int line, struct ocfs2_lock_res *lockres) ocfs2_dump_meta_lvb_info() argument 287 ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) ocfs2_is_inode_lock() argument 299 ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) ocfs2_lock_res_inode() argument 306 ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres) ocfs2_lock_res_dl() argument 313 ocfs2_lock_res_qinfo(struct ocfs2_lock_res *lockres) ocfs2_lock_res_qinfo() argument 326 ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres) ocfs2_get_lockres_osb() argument 343 ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level) ocfs2_cluster_unlock() argument 468 ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) ocfs2_track_lock_refresh() argument 473 ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) ocfs2_track_lock_wait() argument 500 ocfs2_track_lock_refresh(struct ocfs2_lock_res *lockres) ocfs2_track_lock_refresh() argument 503 ocfs2_track_lock_wait(struct ocfs2_lock_res *lockres) ocfs2_track_lock_wait() argument 580 ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres) ocfs2_get_inode_osb() argument 587 ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres) ocfs2_get_qinfo_osb() argument 594 ocfs2_get_file_osb(struct ocfs2_lock_res *lockres) ocfs2_get_file_osb() argument 601 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres) ocfs2_get_dentry_lock_ino() argument 611 ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres) ocfs2_get_dentry_osb() argument 624 struct ocfs2_lock_res *lockres = &dl->dl_lockres; ocfs2_dentry_lock_res_init() local 700 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock_res_init() local 713 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock_res_uninit() local 730 ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_file_private *fp) ocfs2_file_lock_res_init() argument 745 ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_mem_dqinfo *info) ocfs2_qinfo_lock_res_init() argument 756 ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_super *osb, u64 ref_blkno, unsigned int generation) ocfs2_refcount_lock_res_init() argument 800 ocfs2_add_holder(struct ocfs2_lock_res *lockres, struct ocfs2_lock_holder *oh) ocfs2_add_holder() argument 812 ocfs2_pid_holder(struct ocfs2_lock_res *lockres, struct pid *pid) ocfs2_pid_holder() argument 828 ocfs2_remove_holder(struct ocfs2_lock_res *lockres, struct ocfs2_lock_holder *oh) ocfs2_remove_holder() argument 839 ocfs2_inc_holders(struct ocfs2_lock_res *lockres, int level) ocfs2_inc_holders() argument 856 ocfs2_dec_holders(struct ocfs2_lock_res *lockres, int level) ocfs2_dec_holders() argument 889 lockres_set_flags(struct ocfs2_lock_res *lockres, unsigned long newflags) lockres_set_flags() argument 908 lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or) lockres_or_flags() argument 912 lockres_clear_flags(struct ocfs2_lock_res *lockres, unsigned long clear) lockres_clear_flags() argument 918 ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_downconvert_action() argument 934 ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_convert_action() argument 964 ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) ocfs2_generic_handle_attach_action() argument 979 ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level) ocfs2_generic_handle_bast() argument 1067 __lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) __lockres_clear_pending() argument 1093 lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) lockres_clear_pending() argument 1104 lockres_set_pending(struct ocfs2_lock_res *lockres) lockres_set_pending() argument 1116 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_blocking_ast() local 1147 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_locking_ast() local 1213 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); ocfs2_unlock_ast() local 1288 ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, int convert) ocfs2_recover_from_dlm_error() argument 1309 ocfs2_lock_create(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 dlm_flags) ocfs2_lock_create() argument 1352 ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres, int flag) ocfs2_check_wait_flag() argument 1365 ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres) ocfs2_wait_on_busy_lock() argument 1372 ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres) ocfs2_wait_on_refreshing_lock() argument 1382 ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres, int wanted) ocfs2_may_continue_on_blocked_lock() argument 1405 lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw, unsigned long mask, unsigned long goal) lockres_add_mask_waiter() argument 1422 __lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw) __lockres_remove_mask_waiter() argument 1440 lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw) lockres_remove_mask_waiter() argument 1454 ocfs2_wait_for_mask_interruptible(struct ocfs2_mask_waiter *mw, struct ocfs2_lock_res *lockres) ocfs2_wait_for_mask_interruptible() argument 1469 __ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags, int l_subclass, unsigned long caller_ip) __ocfs2_cluster_lock() argument 1672 ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags) ocfs2_cluster_lock() argument 1683 __ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, unsigned long caller_ip) __ocfs2_cluster_unlock() argument 1700 ocfs2_create_new_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int ex, int local) ocfs2_create_new_lock() argument 1767 struct ocfs2_lock_res *lockres; ocfs2_rw_lock() local 1791 struct ocfs2_lock_res *lockres; ocfs2_try_rw_lock() local 1812 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; ocfs2_rw_unlock() local 1829 struct ocfs2_lock_res *lockres; ocfs2_open_lock() local 1851 struct ocfs2_lock_res *lockres; ocfs2_try_open_lock() local 1888 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; ocfs2_open_unlock() local 1906 ocfs2_flock_handle_signal(struct ocfs2_lock_res *lockres, int level) ocfs2_flock_handle_signal() argument 1980 struct ocfs2_lock_res *lockres = &fp->fp_flock; ocfs2_file_lock() local 2076 struct ocfs2_lock_res *lockres = &fp->fp_flock; ocfs2_file_unlock() local 2114 ocfs2_downconvert_on_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_downconvert_on_unlock() argument 2164 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; __ocfs2_stuff_meta_lvb() local 2210 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; ocfs2_refresh_inode_from_lvb() local 2245 ocfs2_meta_lvb_is_trustable(struct inode *inode, struct ocfs2_lock_res *lockres) ocfs2_meta_lvb_is_trustable() argument 2264 ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) ocfs2_should_refresh_lock_res() argument 2295 ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres, int status) ocfs2_complete_lock_res_refresh() argument 2315 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; ocfs2_inode_lock_update() local 2424 struct ocfs2_lock_res *lockres = NULL; ocfs2_inode_lock_full_nested() local 2611 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; ocfs2_inode_unlock() local 2670 struct ocfs2_lock_res *lockres; ocfs2_inode_lock_tracker() local 2726 struct ocfs2_lock_res *lockres; ocfs2_inode_unlock_tracker() local 2742 struct ocfs2_lock_res *lockres; ocfs2_orphan_scan_lock() local 2769 struct ocfs2_lock_res *lockres; ocfs2_orphan_scan_unlock() local 2786 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; ocfs2_super_lock() local 2824 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; ocfs2_super_unlock() local 2833 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; ocfs2_rename_lock() local 2850 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; ocfs2_rename_unlock() local 2859 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; ocfs2_nfs_sync_lock() local 2888 struct ocfs2_lock_res *lockres = &osb->osb_nfs_sync_lockres; ocfs2_nfs_sync_unlock() local 2904 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_lock() local 2944 struct ocfs2_lock_res *lockres = &osb->osb_trim_fs_lockres; ocfs2_trim_fs_unlock() local 3132 struct ocfs2_lock_res *lockres = v; ocfs2_dlm_seq_show() local 3407 ocfs2_drop_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_drop_lock() argument 3498 ocfs2_mark_lockres_freeing(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_mark_lockres_freeing() argument 3558 ocfs2_simple_drop_lockres(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_simple_drop_lockres() argument 3608 ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_prepare_downconvert() argument 3637 ocfs2_downconvert_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int new_level, int lvb, unsigned int generation) ocfs2_downconvert_lock() argument 3681 ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_prepare_cancel_convert() argument 3710 ocfs2_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_cancel_convert() argument 3727 ocfs2_unblock_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, struct ocfs2_unblock_ctl *ctl) ocfs2_unblock_lock() argument 3924 ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_data_convert_worker() argument 3976 ocfs2_ci_checkpointed(struct ocfs2_caching_info *ci, struct ocfs2_lock_res *lockres, int new_level) ocfs2_ci_checkpointed() argument 3992 ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_check_meta_downconvert() argument 4000 ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres) ocfs2_set_meta_lvb() argument 4012 ocfs2_dentry_post_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_dentry_post_unlock() argument 4038 ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_dentry_convert_worker() argument 4131 ocfs2_check_refcount_downconvert(struct ocfs2_lock_res *lockres, int new_level) ocfs2_check_refcount_downconvert() argument 4140 ocfs2_refcount_convert_worker(struct ocfs2_lock_res *lockres, int blocking) ocfs2_refcount_convert_worker() argument 4151 ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres) ocfs2_set_qinfo_lvb() argument 4170 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_qinfo_unlock() local 4182 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_refresh_qinfo() local 4225 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; ocfs2_qinfo_lock() local 4259 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; ocfs2_refcount_lock() local 4279 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; ocfs2_refcount_unlock() local 4286 ocfs2_process_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_process_blocked_lock() argument 4332 ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) ocfs2_schedule_blocked_lock() argument 4363 struct ocfs2_lock_res *lockres; ocfs2_downconvert_thread_do_work() local [all...] |
H A D | locks.c | 29 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()
|
H A D | dlmglue.h | 117 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);
|
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
H A D | dlmthread.c | 72 /* "unused": the lockres has no locks, is not on the dirty list, 106 * the lockres queue's. This will figure out whether it belongs on the 148 * unhash the lockres, and 150 * It requires dlm and lockres spinlock to be taken. 186 * lockres is not in the hash now. drop the flag and wake up in __dlm_do_purge_lockres() 268 /* lockres is not in the hash now. drop the flag and wake up in dlm_purge_lockres() 283 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 in dlm_run_purge_list() [all...] |
H A D | dlmlock.c | 96 /* performs lock creation at the lockres master site 206 mlog(0, "type=%d, lockres %.*s, flags = 0x%x\n", in dlmlock_remote() 241 * lockres and completely remaster it. */ in dlmlock_remote() 248 * the remote lockres before we ever get to use in dlmlock_remote() 250 * the lockres. in dlmlock_remote() 306 mlog(ML_ERROR, "%s: res %.*s, Stale lockres no longer " in dlm_send_remote_lock_request() 357 /* associate a lock with it's lockres, getting a ref on the lockres */ 362 lock->lockres = res; in dlm_lock_attach_lockres() 365 /* drop ref on lockres, i [all...] |
H A D | dlmunlock.c | 110 mlog(ML_ERROR, "lockres %.*s: Someone is calling dlmunlock " in dlmunlock_common() 119 mlog(ML_ERROR, "lockres in progress!\n"); in dlmunlock_common() 327 * that the lockres had been remote but became local in dlm_send_remote_unlock_request() 501 mlog(0, "lockres is in progress\n"); in dlm_unlock_lock_handler() 610 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock() 619 res = lock->lockres; in dlmunlock() 673 * lockres queues and cannot be found. */ in dlmunlock()
|
H A D | dlmast.c | 83 res = lock->lockres; in __dlm_queue_ast() 151 res = lock->lockres; in __dlm_queue_bast() 184 /* only updates if this node masters the lockres */ in dlm_update_lvb() 189 mlog(0, "getting lvb from lockres for %s node\n", in dlm_update_lvb() 330 mlog(0, "Got %sast for unknown lockres! cookie=%u:%llu, " in dlm_proxy_ast_handler()
|
H A D | dlmcommon.h | 206 struct dlm_lock_resource *lockres; member 213 struct dlm_lock_resource *lockres; member 347 struct dlm_lock_resource *lockres; member 522 * We would like to get one whole lockres into a single network 524 * at most one dlm_lock on a lockres for each node in the cluster, 548 * So a lockres would need more than 240 locks before it would 560 __be64 mig_cookie; // cookie for this lockres migration
|
H A D | dlmrecovery.c | 279 mlog(ML_NOTICE, "%s: lockres %.*s on recovering list\n", in dlm_print_reco_node_status() 1076 mlog(0, "found lockres owned by dead node while " in dlm_move_reco_locks_to_list() 1126 mlog(0, "%s:%.*s: sending mig lockres (%s) to %u\n", in dlm_send_mig_lockres_msg() 1208 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() 1286 mlog(0, "argh. lockres has %d locks. this will " in dlm_send_one_lockres() 1333 "lockres %.*s\n", dlm->name, send_to, in dlm_send_one_lockres() 1343 * recovery data, and it will work on only one lockres. 1373 "lockres in dlm_mig_lockres_handler() [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/dlm/ |
H A D | dlmthread.c | 70 /* "unused": the lockres has no locks, is not on the dirty list, 104 * the lockres queue's. This will figure out whether it belongs on the 146 * unhash the lockres, and 148 * It requires dlm and lockres spinlock to be taken. 184 * lockres is not in the hash now. drop the flag and wake up in __dlm_do_purge_lockres() 266 /* lockres is not in the hash now. drop the flag and wake up in dlm_purge_lockres() 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 in dlm_run_purge_list() [all...] |
H A D | dlmlock.c | 94 /* performs lock creation at the lockres master site 204 mlog(0, "type=%d, lockres %.*s, flags = 0x%x\n", in dlmlock_remote() 239 * lockres and completely remaster it. */ in dlmlock_remote() 246 * the remote lockres before we ever get to use in dlmlock_remote() 248 * the lockres. in dlmlock_remote() 304 mlog(ML_ERROR, "%s: res %.*s, Stale lockres no longer " in dlm_send_remote_lock_request() 355 /* associate a lock with it's lockres, getting a ref on the lockres */ 360 lock->lockres = res; in dlm_lock_attach_lockres() 363 /* drop ref on lockres, i [all...] |
H A D | dlmast.c | 81 res = lock->lockres; in __dlm_queue_ast() 149 res = lock->lockres; in __dlm_queue_bast() 172 /* only updates if this node masters the lockres */ in dlm_update_lvb() 177 mlog(0, "getting lvb from lockres for %s node\n", in dlm_update_lvb() 318 mlog(0, "Got %sast for unknown lockres! cookie=%u:%llu, " in dlm_proxy_ast_handler()
|
H A D | dlmunlock.c | 108 mlog(ML_ERROR, "lockres %.*s: Someone is calling dlmunlock " in dlmunlock_common() 117 mlog(ML_ERROR, "lockres in progress!\n"); in dlmunlock_common() 325 * that the lockres had been remote but became local in dlm_send_remote_unlock_request() 498 mlog(0, "lockres is in progress\n"); in dlm_unlock_lock_handler() 607 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock() 616 res = lock->lockres; in dlmunlock() 670 * lockres queues and cannot be found. */ in dlmunlock()
|
H A D | dlmcommon.h | 201 struct dlm_lock_resource *lockres; member 208 struct dlm_lock_resource *lockres; member 342 struct dlm_lock_resource *lockres; member 517 * We would like to get one whole lockres into a single network 519 * at most one dlm_lock on a lockres for each node in the cluster, 543 * So a lockres would need more than 240 locks before it would 555 __be64 mig_cookie; // cookie for this lockres migration
|
H A D | dlmrecovery.c | 270 mlog(ML_NOTICE, "%s: lockres %.*s on recovering list\n", in dlm_print_reco_node_status() 1067 mlog(0, "found lockres owned by dead node while " in dlm_move_reco_locks_to_list() 1117 mlog(0, "%s:%.*s: sending mig lockres (%s) to %u\n", in dlm_send_mig_lockres_msg() 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() 1277 mlog(0, "argh. lockres has %d locks. this will " in dlm_send_one_lockres() 1324 "lockres %.*s\n", dlm->name, send_to, in dlm_send_one_lockres() 1334 * recovery data, and it will work on only one lockres. 1364 "lockres in dlm_mig_lockres_handler() [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A 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() 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() 268 read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) read_resync_info() argument
|
/kernel/linux/linux-6.6/drivers/md/ |
H A 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() 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() 268 read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) read_resync_info() argument
|