Searched refs:lockres (Results 1 - 16 of 16) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ocfs2/dlm/
H A Duserdlm.c49 static inline int user_check_wait_flag(struct user_lock_res *lockres, argument
54 spin_lock(&lockres->l_lock);
55 ret = lockres->l_flags & flag;
56 spin_unlock(&lockres->l_lock);
61 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) argument
64 wait_event(lockres->l_event,
65 !user_check_wait_flag(lockres, USER_LOCK_BUSY));
68 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) argument
71 wait_event(lockres->l_event,
72 !user_check_wait_flag(lockres, USER_LOCK_BLOCKE
77 dlm_ctxt_from_user_lockres(struct user_lock_res *lockres) argument
88 user_dlm_inode_from_user_lockres(struct user_lock_res *lockres) argument
98 user_recover_from_dlm_error(struct user_lock_res *lockres) argument
127 struct user_lock_res *lockres = opaque; local
166 user_dlm_grab_inode_ref(struct user_lock_res *lockres) argument
176 __user_dlm_queue_lockres(struct user_lock_res *lockres) argument
188 __user_dlm_cond_queue_lockres(struct user_lock_res *lockres) argument
214 struct user_lock_res *lockres = opaque; local
232 struct user_lock_res *lockres = opaque; local
274 user_dlm_drop_inode_ref(struct user_lock_res *lockres) argument
284 struct user_lock_res *lockres = local
381 user_dlm_inc_holders(struct user_lock_res *lockres, int level) argument
400 user_may_continue_on_blocked_lock(struct user_lock_res *lockres, int wanted) argument
408 user_dlm_cluster_lock(struct user_lock_res *lockres, int level, int lkm_flags) argument
505 user_dlm_dec_holders(struct user_lock_res *lockres, int level) argument
522 user_dlm_cluster_unlock(struct user_lock_res *lockres, int level) argument
542 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; local
559 struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; local
572 user_dlm_lock_res_init(struct user_lock_res *lockres, struct dentry *dentry) argument
592 user_dlm_destroy_lock(struct user_lock_res *lockres) argument
[all...]
H A Duserdlm.h72 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,
H A Ddlmthread.c91 /* "unused": the lockres has no locks, is not on the dirty list,
114 * the lockres queue's. This will figure out whether it belongs on the
126 mlog(0, "putting lockres %.*s:%p onto purge list\n",
135 mlog(0, "removing lockres %.*s:%p from purge list, owner=%u\n",
175 mlog(0, "purging lockres %.*s, master = %d\n", res->lockname.len,
198 mlog(0, "removing lockres %.*s:%p from purgelist, "
207 /* lockres is not in the hash now. drop the flag and wake up
223 struct dlm_lock_resource *lockres; local
231 lockres = list_entry(dlm->purge_list.next,
234 /* Status of the lockres *migh
[all...]
H A Ddlmlock.c97 /* performs lock creation at the lockres master site
166 /* reduce the inflight count, this may result in the lockres
211 mlog(0, "lockres %.*s, flags = 0x%x\n", res->lockname.len,
239 * lockres and completely remaster it. */
246 * the remote lockres before we ever get to use
248 * the lockres.
307 mlog(ML_ERROR, "%s:%.*s: BUG. this is a stale lockres "
359 /* associate a lock with it's lockres, getting a ref on the lockres */
364 lock->lockres
[all...]
H A Ddlmdebug.c48 mlog(ML_NOTICE, "lockres: %.*s, owner=%u, state=%u\n",
80 mlog(ML_NOTICE, "lockres: %.*s, owner=%u, state=%u\n",
135 dlm_print_one_lock_resource(lockid->lockres);
H A Ddlmunlock.c126 mlog(ML_ERROR, "lockres %.*s: Someone is calling dlmunlock "
135 mlog(ML_ERROR, "lockres in progress!\n");
326 * that the lockres had been remote but became local
498 mlog(0, "lockres is in progress\n");
609 if (!lksb->lockid || !lksb->lockid->lockres) {
618 res = lock->lockres;
670 * lockres queues and cannot be found. */
H A Ddlmdomain.c133 void __dlm_unhash_lockres(struct dlm_lock_resource *lockres) argument
135 if (!hlist_unhashed(&lockres->hash_node)) {
136 hlist_del_init(&lockres->hash_node);
137 dlm_lockres_put(lockres);
653 /* Give dlm_thread time to purge the lockres' */
H A Ddlmcommon.h171 struct dlm_lock_resource *lockres; member in struct:dlm_mig_lockres_priv
177 struct dlm_lock_resource *lockres; member in struct:dlm_assert_master_priv
304 struct dlm_lock_resource *lockres; member in struct:dlm_lock
474 * We would like to get one whole lockres into a single network
476 * at most one dlm_lock on a lockres for each node in the cluster,
500 * So a lockres would need more than 240 locks before it would
512 __be64 mig_cookie; // cookie for this lockres migration
H A Ddlmast.c117 struct dlm_lock_resource *res = lock->lockres;
190 /* only updates if this node masters the lockres */
196 mlog(0, "getting lvb from lockres for %s node\n",
324 mlog(0, "got %sast for unknown lockres! "
337 mlog(0, "lockres %.*s\n", res->lockname.len, res->lockname.name);
H A Ddlmrecovery.c300 mlog(ML_NOTICE, "%s: lockres %.*s on recovering list\n",
1080 mlog(0, "found lockres owned by dead node while "
1133 mlog(0, "%s:%.*s: sending mig lockres (%s) to %u\n",
1206 __dlm_print_one_lock_resource(lock->lockres);
1266 mlog(0, "argh. lockres has %d locks. this will "
1315 "lockres %.*s\n", dlm->name, send_to,
1325 * recovery data, and it will work on only one lockres.
1355 /* cannot migrate a lockres with no master */
1363 mlog(0, "all done flag. all lockres data received!\n");
1384 * lockres messag
[all...]
H A Ddlmmaster.c582 /* This should not happen -- all lockres' have a name
586 mlog(0, "destroying lockres %.*s\n", res->lockname.len,
736 * if not, allocate enough for the lockres and for
767 mlog(0, "get lockres %s (len %d)\n", lockid, namelen);
785 * the lockres to be purged, start over. */
816 mlog(0, "no lockres found, allocated our own: %p\n", res);
827 /* lockres still marked IN_PROGRESS */
867 * the mle or lockres waitqueue here */
884 * but they might own this lockres. wait on them. */
896 * lockres t
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ocfs2/
H A Ddlmglue.c70 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres);
71 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres);
93 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
95 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres);
97 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
100 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
104 struct ocfs2_lock_res *lockres);
113 struct ocfs2_lock_res *lockres)
115 struct ocfs2_meta_lvb *lvb = (struct ocfs2_meta_lvb *) lockres->l_lksb.lvb;
118 lockres
110 ocfs2_dump_meta_lvb_info(u64 level, const char *function, unsigned int line, struct ocfs2_lock_res *lockres) argument
261 ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) argument
269 ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) argument
276 ocfs2_lock_res_dl(struct ocfs2_lock_res *lockres) argument
283 ocfs2_get_lockres_osb(struct ocfs2_lock_res *lockres) argument
424 ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres) argument
431 ocfs2_get_dentry_lock_ino(struct ocfs2_lock_res *lockres) argument
441 ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres) argument
454 struct ocfs2_lock_res *lockres = &dl->dl_lockres; local
543 ocfs2_inc_holders(struct ocfs2_lock_res *lockres, int level) argument
564 ocfs2_dec_holders(struct ocfs2_lock_res *lockres, int level) argument
600 lockres_set_flags(struct ocfs2_lock_res *lockres, unsigned long newflags) argument
620 lockres_or_flags(struct ocfs2_lock_res *lockres, unsigned long or) argument
624 lockres_clear_flags(struct ocfs2_lock_res *lockres, unsigned long clear) argument
630 ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) argument
650 ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) argument
671 ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) argument
690 ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level) argument
718 struct ocfs2_lock_res *lockres = opaque; local
742 struct ocfs2_lock_res *lockres = opaque; local
782 ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, int convert) argument
804 ocfs2_lock_create(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, int dlm_flags) argument
852 ocfs2_check_wait_flag(struct ocfs2_lock_res *lockres, int flag) argument
865 ocfs2_wait_on_busy_lock(struct ocfs2_lock_res *lockres) argument
872 ocfs2_wait_on_refreshing_lock(struct ocfs2_lock_res *lockres) argument
882 ocfs2_may_continue_on_blocked_lock(struct ocfs2_lock_res *lockres, int wanted) argument
904 lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw, unsigned long mask, unsigned long goal) argument
920 lockres_remove_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw) argument
940 ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, int lkm_flags, int arg_flags) argument
1082 ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level) argument
1096 ocfs2_create_new_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int ex, int local) argument
1175 struct ocfs2_lock_res *lockres; local
1205 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; local
1226 struct ocfs2_lock_res *lockres; local
1254 struct ocfs2_lock_res *lockres; local
1291 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; local
1318 struct ocfs2_lock_res *lockres; local
1374 ocfs2_vote_on_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
1409 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_data_lockres; local
1448 struct ocfs2_lock_res *lockres = &oi->ip_meta_lockres; local
1497 struct ocfs2_lock_res *lockres = &oi->ip_meta_lockres; local
1535 ocfs2_meta_lvb_is_trustable(struct inode *inode, struct ocfs2_lock_res *lockres) argument
1553 ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) argument
1586 ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockres, int status) argument
1609 struct ocfs2_lock_res *lockres = &oi->ip_meta_lockres; local
1727 struct ocfs2_lock_res *lockres = NULL; local
1912 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_meta_lockres; local
1933 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; local
1981 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; local
1990 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; local
2007 struct ocfs2_lock_res *lockres = &osb->osb_rename_lockres; local
2170 struct ocfs2_lock_res *lockres = v; local
2387 struct ocfs2_lock_res *lockres = opaque; local
2441 ocfs2_drop_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
2528 ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres) argument
2553 ocfs2_simple_drop_lockres(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
2611 ocfs2_prepare_downconvert(struct ocfs2_lock_res *lockres, int new_level) argument
2632 ocfs2_downconvert_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int new_level, int lvb) argument
2668 ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
2699 ocfs2_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
2726 ocfs2_unblock_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, struct ocfs2_unblock_ctl *ctl) argument
2838 ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres, int blocking) argument
2875 ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, int new_level) argument
2891 ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres) argument
2903 ocfs2_dentry_post_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
2929 ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres, int blocking) argument
3020 ocfs2_process_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
3070 ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument
[all...]
H A Ddlmglue.h111 void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres);
113 struct ocfs2_lock_res *lockres);
117 struct ocfs2_lock_res *lockres);
H A Dvote.c212 struct ocfs2_lock_res *lockres; local
226 lockres = list_entry(osb->blocked_lock_list.next,
228 list_del_init(&lockres->l_blocked_list);
235 ocfs2_process_blocked_lock(osb, lockres);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/lockd/
H A Dsvc4proc.c503 PROC(lock_res, lockres, norep, res, void, 1),
H A Dsvcproc.c536 PROC(lock_res, lockres, norep, res, void, 1),

Completed in 92 milliseconds