aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2009-02-26 18:00:47 -0500
committerMark Fasheh <mfasheh@suse.com>2009-04-03 14:39:23 -0400
commit7141514b8307734c117f100c4a3637887c5def45 (patch)
tree8f2944508cdb0dd1ea7288d7300e4c29995c904e /fs/ocfs2/dlm/dlmcommon.h
parente64ff14607ac90b2f3349550a41cc8dc0c0b1324 (diff)
ocfs2/dlm: Remove struct dlm_lock_name in struct dlm_master_list_entry
This patch removes struct dlm_lock_name and adds the entries directly to struct dlm_master_list_entry. Under the new scheme, both mles that are backed by a lockres or not, will have the name populated in mle->mname. This allows us to get rid of code that was figuring out the location of the mle name. 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.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h
index 266fde9354bd..0102be35980c 100644
--- a/fs/ocfs2/dlm/dlmcommon.h
+++ b/fs/ocfs2/dlm/dlmcommon.h
@@ -56,12 +56,6 @@ enum dlm_mle_type {
56 DLM_MLE_NUM_TYPES 56 DLM_MLE_NUM_TYPES
57}; 57};
58 58
59struct dlm_lock_name {
60 unsigned int hash;
61 unsigned int len;
62 unsigned char name[DLM_LOCKID_NAME_MAX];
63};
64
65struct dlm_master_list_entry { 59struct dlm_master_list_entry {
66 struct hlist_node master_hash_node; 60 struct hlist_node master_hash_node;
67 struct list_head hb_events; 61 struct list_head hb_events;
@@ -80,10 +74,10 @@ struct dlm_master_list_entry {
80 enum dlm_mle_type type; 74 enum dlm_mle_type type;
81 struct o2hb_callback_func mle_hb_up; 75 struct o2hb_callback_func mle_hb_up;
82 struct o2hb_callback_func mle_hb_down; 76 struct o2hb_callback_func mle_hb_down;
83 union { 77 struct dlm_lock_resource *mleres;
84 struct dlm_lock_resource *mleres; 78 unsigned char mname[DLM_LOCKID_NAME_MAX];
85 struct dlm_lock_name mlename; 79 unsigned int mnamelen;
86 } u; 80 unsigned int mnamehash;
87}; 81};
88 82
89enum dlm_ast_type { 83enum dlm_ast_type {