ocfs2/dlm: dlm_is_lockres_migrateable() returns boolean
Patch cleans up the gunk added by commit 388c4bcb4e
.
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>
Tento commit je obsažen v:
@@ -401,6 +401,18 @@ static inline int dlm_lvb_is_empty(char *lvb)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline char *dlm_list_in_text(enum dlm_lockres_list idx)
|
||||
{
|
||||
if (idx == DLM_GRANTED_LIST)
|
||||
return "granted";
|
||||
else if (idx == DLM_CONVERTING_LIST)
|
||||
return "converting";
|
||||
else if (idx == DLM_BLOCKED_LIST)
|
||||
return "blocked";
|
||||
else
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
static inline struct list_head *
|
||||
dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx)
|
||||
{
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele