diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2011-05-19 17:34:09 -0400 |
---|---|---|
committer | Joel Becker <jlbec@evilplan.org> | 2011-05-24 02:37:39 -0400 |
commit | 9f62e96084cd7ae6dedcfb4caf066ed6cc67e0d7 (patch) | |
tree | 67a07e9c4ab93c72e1847ab0974cb601ce234251 /fs/ocfs2/dlm/dlmcommon.h | |
parent | 10fca35ff12ad2a7017bce6567cffe9da443d7a2 (diff) |
ocfs2/dlm: dlm_is_lockres_migrateable() returns boolean
Patch cleans up the gunk added by commit 388c4bcb4e63e88fb1f312a2f5f9eb2623afcf5b.
dlm_is_lockres_migrateable() now returns 1 if lockresource is deemed
migrateable and 0 if not.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 4bdf7baee344..1aac42a29745 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -401,6 +401,18 @@ static inline int dlm_lvb_is_empty(char *lvb) | |||
401 | return 1; | 401 | return 1; |
402 | } | 402 | } |
403 | 403 | ||
404 | static inline char *dlm_list_in_text(enum dlm_lockres_list idx) | ||
405 | { | ||
406 | if (idx == DLM_GRANTED_LIST) | ||
407 | return "granted"; | ||
408 | else if (idx == DLM_CONVERTING_LIST) | ||
409 | return "converting"; | ||
410 | else if (idx == DLM_BLOCKED_LIST) | ||
411 | return "blocked"; | ||
412 | else | ||
413 | return "unknown"; | ||
414 | } | ||
415 | |||
404 | static inline struct list_head * | 416 | static inline struct list_head * |
405 | dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) | 417 | dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) |
406 | { | 418 | { |