diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-02-01 15:16:57 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 11:56:04 -0400 |
commit | 8f2c9c1b16bf6ed0903b29c49d56fa0109a390e4 (patch) | |
tree | 8564370d96cbfb3a0125f17c93ee3587efef1ed1 /fs/ocfs2/stackglue.h | |
parent | 7431cd7e8dd0e46e9b12bd6a1ac1286f4b420371 (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/stackglue.h')
-rw-r--r-- | fs/ocfs2/stackglue.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h index 8ebcfba62c7e..3c91e241892b 100644 --- a/fs/ocfs2/stackglue.h +++ b/fs/ocfs2/stackglue.h | |||
@@ -40,18 +40,25 @@ struct ocfs2_locking_protocol { | |||
40 | void (*lp_unlock_ast)(void *astarg, int error); | 40 | void (*lp_unlock_ast)(void *astarg, int error); |
41 | }; | 41 | }; |
42 | 42 | ||
43 | union ocfs2_dlm_lksb { | ||
44 | struct dlm_lockstatus lksb_o2dlm; | ||
45 | }; | ||
46 | |||
43 | int ocfs2_dlm_lock(struct dlm_ctxt *dlm, | 47 | int ocfs2_dlm_lock(struct dlm_ctxt *dlm, |
44 | int mode, | 48 | int mode, |
45 | struct dlm_lockstatus *lksb, | 49 | union ocfs2_dlm_lksb *lksb, |
46 | u32 flags, | 50 | u32 flags, |
47 | void *name, | 51 | void *name, |
48 | unsigned int namelen, | 52 | unsigned int namelen, |
49 | void *astarg); | 53 | void *astarg); |
50 | int ocfs2_dlm_unlock(struct dlm_ctxt *dlm, | 54 | int ocfs2_dlm_unlock(struct dlm_ctxt *dlm, |
51 | struct dlm_lockstatus *lksb, | 55 | union ocfs2_dlm_lksb *lksb, |
52 | u32 flags, | 56 | u32 flags, |
53 | void *astarg); | 57 | void *astarg); |
54 | 58 | ||
59 | int ocfs2_dlm_lock_status(union ocfs2_dlm_lksb *lksb); | ||
60 | void *ocfs2_dlm_lvb(union ocfs2_dlm_lksb *lksb); | ||
61 | |||
55 | void o2cb_get_stack(struct ocfs2_locking_protocol *proto); | 62 | void o2cb_get_stack(struct ocfs2_locking_protocol *proto); |
56 | void o2cb_put_stack(void); | 63 | void o2cb_put_stack(void); |
57 | 64 | ||