diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 2f4f5d4edb07..e90b92f9ece1 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -625,12 +625,16 @@ struct dlm_begin_reco | |||
625 | }; | 625 | }; |
626 | 626 | ||
627 | 627 | ||
628 | #define BITS_PER_BYTE 8 | ||
629 | #define BITS_TO_BYTES(bits) (((bits)+BITS_PER_BYTE-1)/BITS_PER_BYTE) | ||
630 | |||
628 | struct dlm_query_join_request | 631 | struct dlm_query_join_request |
629 | { | 632 | { |
630 | u8 node_idx; | 633 | u8 node_idx; |
631 | u8 pad1[2]; | 634 | u8 pad1[2]; |
632 | u8 name_len; | 635 | u8 name_len; |
633 | u8 domain[O2NM_MAX_NAME_LEN]; | 636 | u8 domain[O2NM_MAX_NAME_LEN]; |
637 | u8 node_map[BITS_TO_BYTES(O2NM_MAX_NODES)]; | ||
634 | }; | 638 | }; |
635 | 639 | ||
636 | struct dlm_assert_joined | 640 | struct dlm_assert_joined |