aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 15:16:57 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:04 -0400
commit8f2c9c1b16bf6ed0903b29c49d56fa0109a390e4 (patch)
tree8564370d96cbfb3a0125f17c93ee3587efef1ed1 /fs/ocfs2/ocfs2.h
parent7431cd7e8dd0e46e9b12bd6a1ac1286f4b420371 (diff)
ocfs2: Create the lock status block union.
Wrap the lock status block (lksb) in a union. Later we will add a union element for the fs/dlm lksb. Create accessors for the status and lvb fields. Other than a debugging function, dlmglue.c does not directly reference the o2dlm locking path anymore. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r--fs/ocfs2/ocfs2.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h
index f78e9ed53249..6d7c6d2d0c23 100644
--- a/fs/ocfs2/ocfs2.h
+++ b/fs/ocfs2/ocfs2.h
@@ -40,7 +40,8 @@
40#include "cluster/heartbeat.h" 40#include "cluster/heartbeat.h"
41#include "cluster/tcp.h" 41#include "cluster/tcp.h"
42 42
43#include "dlm/dlmapi.h" 43/* For union ocfs2_dlm_lksb */
44#include "stackglue.h"
44 45
45#include "ocfs2_fs.h" 46#include "ocfs2_fs.h"
46#include "ocfs2_lockid.h" 47#include "ocfs2_lockid.h"
@@ -120,7 +121,7 @@ struct ocfs2_lock_res {
120 int l_level; 121 int l_level;
121 unsigned int l_ro_holders; 122 unsigned int l_ro_holders;
122 unsigned int l_ex_holders; 123 unsigned int l_ex_holders;
123 struct dlm_lockstatus l_lksb; 124 union ocfs2_dlm_lksb l_lksb;
124 125
125 /* used from AST/BAST funcs. */ 126 /* used from AST/BAST funcs. */
126 enum ocfs2_ast_action l_action; 127 enum ocfs2_ast_action l_action;