diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 4fc1be3a3fa2..bf873919b009 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -315,6 +315,15 @@ enum dlm_lockres_list { | |||
315 | DLM_BLOCKED_LIST | 315 | DLM_BLOCKED_LIST |
316 | }; | 316 | }; |
317 | 317 | ||
318 | static inline int dlm_lvb_is_empty(char *lvb) | ||
319 | { | ||
320 | int i; | ||
321 | for (i=0; i<DLM_LVB_LEN; i++) | ||
322 | if (lvb[i]) | ||
323 | return 0; | ||
324 | return 1; | ||
325 | } | ||
326 | |||
318 | static inline struct list_head * | 327 | static inline struct list_head * |
319 | dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) | 328 | dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) |
320 | { | 329 | { |