diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2009-02-26 18:00:38 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 14:39:18 -0400 |
commit | f77a9a78c3a1d995b3bf948dbcad5c4a1b2302d5 (patch) | |
tree | c12f1fa1da0a64693d39a2f98c5a1981bf58a83a /fs/ocfs2/dlm/dlmcommon.h | |
parent | 1c0845773ad9f4875603b752235aea8aa04565f3 (diff) |
ocfs2/dlm: Clean up struct dlm_lock_name
For master mle, the name it stored in the attached lockres in struct qstr.
For block and migration mle, the name is stored inline in struct dlm_lock_name.
This patch attempts to make struct dlm_lock_name look like a struct qstr. While
we could use struct qstr, we don't because we want to avoid having to malloc
and free the lockname string as the mle's lifetime is fairly short.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 261e26501e57..b232aa0b3345 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -56,8 +56,8 @@ enum dlm_mle_type { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | struct dlm_lock_name { | 58 | struct dlm_lock_name { |
59 | u8 len; | 59 | unsigned int len; |
60 | u8 name[DLM_LOCKID_NAME_MAX]; | 60 | unsigned char name[DLM_LOCKID_NAME_MAX]; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | struct dlm_master_list_entry { | 63 | struct dlm_master_list_entry { |
@@ -79,8 +79,8 @@ struct dlm_master_list_entry { | |||
79 | struct o2hb_callback_func mle_hb_up; | 79 | struct o2hb_callback_func mle_hb_up; |
80 | struct o2hb_callback_func mle_hb_down; | 80 | struct o2hb_callback_func mle_hb_down; |
81 | union { | 81 | union { |
82 | struct dlm_lock_resource *res; | 82 | struct dlm_lock_resource *mleres; |
83 | struct dlm_lock_name name; | 83 | struct dlm_lock_name mlename; |
84 | } u; | 84 | } u; |
85 | }; | 85 | }; |
86 | 86 | ||