aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r--fs/ocfs2/dlm/dlmcommon.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h
index 78eccd0951e4..829cc3948804 100644
--- a/fs/ocfs2/dlm/dlmcommon.h
+++ b/fs/ocfs2/dlm/dlmcommon.h
@@ -235,18 +235,26 @@ struct dlm_lock_resource
235 struct qstr lockname; 235 struct qstr lockname;
236 struct kref refs; 236 struct kref refs;
237 237
238 /* please keep these next 3 in this order 238 /*
239 * some funcs want to iterate over all lists */ 239 * Please keep granted, converting, and blocked in this order,
240 * as some funcs want to iterate over all lists.
241 *
242 * All four lists are protected by the hash's reference.
243 */
240 struct list_head granted; 244 struct list_head granted;
241 struct list_head converting; 245 struct list_head converting;
242 struct list_head blocked; 246 struct list_head blocked;
247 struct list_head purge;
243 248
249 /*
250 * These two lists require you to hold an additional reference
251 * while they are on the list.
252 */
244 struct list_head dirty; 253 struct list_head dirty;
245 struct list_head recovering; // dlm_recovery_ctxt.resources list 254 struct list_head recovering; // dlm_recovery_ctxt.resources list
246 255
247 /* unused lock resources have their last_used stamped and are 256 /* unused lock resources have their last_used stamped and are
248 * put on a list for the dlm thread to run. */ 257 * put on a list for the dlm thread to run. */
249 struct list_head purge;
250 unsigned long last_used; 258 unsigned long last_used;
251 259
252 unsigned migration_pending:1; 260 unsigned migration_pending:1;