aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/stackglue.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 15:15:37 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:03 -0400
commit7431cd7e8dd0e46e9b12bd6a1ac1286f4b420371 (patch)
tree748d55c349f12ee504635748c64ee14026eda556 /fs/ocfs2/stackglue.h
parentbd3e76105d4478ab89951a52d1a35250d24a9f16 (diff)
ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API.
Change the ocfs2_dlm_lock/unlock() functions to return -errno values. This is the first step towards elminiating dlm_status in fs/ocfs2/dlmglue.c. The change also passes -errno values to ->unlock_ast(). [ Fix a return code in dlmglue.c and change the error translation table into an array of ints. --Mark ] 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h
index 986d059ed1e0..8ebcfba62c7e 100644
--- a/fs/ocfs2/stackglue.h
+++ b/fs/ocfs2/stackglue.h
@@ -37,17 +37,17 @@
37struct ocfs2_locking_protocol { 37struct ocfs2_locking_protocol {
38 void (*lp_lock_ast)(void *astarg); 38 void (*lp_lock_ast)(void *astarg);
39 void (*lp_blocking_ast)(void *astarg, int level); 39 void (*lp_blocking_ast)(void *astarg, int level);
40 void (*lp_unlock_ast)(void *astarg, enum dlm_status status); 40 void (*lp_unlock_ast)(void *astarg, int error);
41}; 41};
42 42
43enum dlm_status ocfs2_dlm_lock(struct dlm_ctxt *dlm, 43int ocfs2_dlm_lock(struct dlm_ctxt *dlm,
44 int mode, 44 int mode,
45 struct dlm_lockstatus *lksb, 45 struct dlm_lockstatus *lksb,
46 u32 flags, 46 u32 flags,
47 void *name, 47 void *name,
48 unsigned int namelen, 48 unsigned int namelen,
49 void *astarg); 49 void *astarg);
50enum dlm_status ocfs2_dlm_unlock(struct dlm_ctxt *dlm, 50int ocfs2_dlm_unlock(struct dlm_ctxt *dlm,
51 struct dlm_lockstatus *lksb, 51 struct dlm_lockstatus *lksb,
52 u32 flags, 52 u32 flags,
53 void *astarg); 53 void *astarg);