Lines Matching refs:glock

42 #include "glock.h"
57 struct gfs2_glock *gl; /* current glock struct */
116 * wake_up_glock - Wake up waiters on a glock
117 * @gl: the glock
134 container_of(gl, struct gfs2_glock_aspace, glock);
141 * glock_blocked_by_withdraw - determine if we can still use a glock
142 * @gl: the glock
147 * the iopen or freeze glock may be safely used because none of their
207 * gfs2_glock_hold() - increment reference count on glock
208 * @gl: The glock to hold
244 * Enqueue the glock on the work queue. Passes one glock reference on to the
254 * spinlock before dropping its glock reference(s), so it
295 * gfs2_glock_put() - Decrement reference count on glock
296 * @gl: The glock to put
310 * @gl: The glock to put
312 * Decrement the reference count on glock immediately unless it is the last
326 * @gl: The glock
330 * With our current compatibility rules, if a glock has one or more active
394 * @gl: The glock
419 * @gl: the glock
437 * @gh: The glock holder
461 * locks an inode glock _before_ it has an actual inode to
483 * @gl: The glock
518 * find_first_waiter - find the first gh that's waiting for the glock
519 * @gl: the glock
534 * find_last_waiter - find the last gh that's waiting for the glock
535 * @gl: the glock
551 * state_change - record that the glock is now in a different state
552 * @gl: the glock
585 * @gl: The glock
640 "glock %u:%llu requested=%u ret=%u\n",
710 * finish first. The glock state machine will get back to this
732 * release the glock to other nodes.
736 fs_err(sdp, "Error %d syncing glock \n", ret);
748 * glocks. Warn about the error, dump the glock, then fall
766 * If so, we can't withdraw from the glock code because the withdraw
769 * dlm to unlock the glock until the journal is in a known good state
777 * system statfs inode glock, which needs to be granted before the
842 * run_queue - do all outstanding tasks related to a glock
843 * @gl: The glock in question
900 * glock_set_object - set the gl_object field of a glock
901 * @gl: the glock
917 * glock_clear_object - clear the gl_object field of a glock
918 * @gl: the glock
919 * @object: object the glock currently points at
989 * If there is contention on the iopen glock and we have an inode, try
994 * avoid rgrp glock thrashing.
997 * glock, so it will run before we get to verify that the delete has
1097 /* Keep one glock reference for the work we requeue. */
1102 /* Drop the remaining glock references manually. */
1152 * gfs2_glock_get() - Get a glock, or create one if one doesn't exist
1156 * @create: If 0, don't create the glock if it doesn't exist
1157 * @glp: the glock is returned here
1159 * This does not lock a glock, just finds/creates structures for one.
1185 gl = &gla->glock;
1215 /* We use the global stats to estimate the initial per-glock stats */
1255 * @gl: the glock
1280 * Don't mess with the glock.
1295 * gfs2_holder_uninit - uninitialize a holder structure (drop glock reference)
1321 * @gh: the glock holder
1323 * Called when a glock holder no longer needs to be waited for because it is
1339 * gfs2_glock_wait - wait on a glock acquisition
1340 * @gh: the glock holder
1366 * gfs2_glock_async_wait - wait on multiple asynchronous glock acquisitions
1368 * @ghs: the glock holder array
1421 * @gl: the glock
1544 * gfs2_glock_nq - enqueue a struct gfs2_holder onto a glock (acquire a glock)
1648 * gfs2_glock_dq - dequeue a struct gfs2_holder from a glock (release a glock)
1649 * @gh: the glock holder
1686 * to allow unlocking of nondisk glocks and the glock for our own
1714 * gfs2_glock_dq_uninit - dequeue a holder from a glock and initialize it
1726 * gfs2_glock_nq_num - acquire a glock based on lock number
1729 * @glops: the glock operations for the type of glock
1730 * @state: the state to acquire the glock in
1776 * nq_m_sync - synchronously acquire more than one glock in deadlock free order
1882 * gfs2_should_freeze - Figure out if glock should be frozen
1883 * @gl: The glock in question
1913 * @gl: Pointer to the glock
1917 * to use a bitfield shared with other glock state fields.
2062 * glock_hash_walk - Call a function for glock in a hash bucket
2119 * thaw_glock - thaw out a glock which has an unprocessed reply waiting
2120 * @gl: The glock to thaw
2139 * clear_glock - look at a glock and see if we can free it from glock cache
2140 * @gl: the glock to look at
2196 * gfs2_gl_hash_clear - Empty out the glock hash table
2276 * dump_holder - print information about a glock holder
2278 * @gh: the glock holder
2361 * gfs2_dump_glock - print information about a glock
2363 * @gl: the glock
2368 * G = glock, I = Inode, R = rgrp, H = holder. Glocks are not indented,
2369 * other objects are indented by a single space and follow the glock to
2499 glock_shrinker = shrinker_alloc(0, "gfs2-glock");