[Ocfs2-devel] [PATCH]Initialize lockres->cache_list
Rusty Lynch
rusty at linux.co.intel.com
Mon Mar 22 14:50:56 CST 2004
The following is a small patch to initialize the cache_list list_head
while initializing a new lockres.
--rusty
Index: src/dlm.c
===================================================================
--- src/dlm.c (revision 804)
+++ src/dlm.c (working copy)
@@ -1056,6 +1056,8 @@
lockres->lock_holders = 0;
LOG_TRACE_ARGS("lockres->lock_holders = %u\n", lockres->lock_holders);
+ INIT_LIST_HEAD(&lockres->cache_list);
+
LOG_EXIT ();
return;
} /* ocfs_init_lockres */
More information about the Ocfs2-devel
mailing list