aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking/dlm/lock_dlm.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-08 10:17:58 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-08 10:17:58 -0400
commit9b47c11d1cbedcba685c9bd90c73fd41acdfab0e (patch)
tree799f05877bd8973262da54852b7b8bf9a9916998 /fs/gfs2/locking/dlm/lock_dlm.h
parenta2c4580797f62b0dd9a48f1e0ce3fe8b8fd76262 (diff)
[GFS2] Use void * instead of typedef for locking module interface
As requested by Jan Engelhardt, this removes the typedefs in the locking module interface and replaces them with void *. Also since we are changing the interface, I've added a few consts as well. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Cc: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking/dlm/lock_dlm.h')
-rw-r--r--fs/gfs2/locking/dlm/lock_dlm.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h
index a4f534a0ecff..3a45c020d01e 100644
--- a/fs/gfs2/locking/dlm/lock_dlm.h
+++ b/fs/gfs2/locking/dlm/lock_dlm.h
@@ -112,7 +112,7 @@ struct gdlm_lock {
112 s16 cur; 112 s16 cur;
113 s16 req; 113 s16 req;
114 s16 prev_req; 114 s16 prev_req;
115 u32 lkf; /* dlm flags DLM_LKF_ */ 115 u32 lkf; /* dlm flags DLM_LKF_ */
116 unsigned long flags; /* lock_dlm flags LFL_ */ 116 unsigned long flags; /* lock_dlm flags LFL_ */
117 117
118 int bast_mode; /* protected by async_lock */ 118 int bast_mode; /* protected by async_lock */
@@ -165,23 +165,23 @@ int gdlm_release_all_locks(struct gdlm_ls *);
165void gdlm_delete_lp(struct gdlm_lock *); 165void gdlm_delete_lp(struct gdlm_lock *);
166unsigned int gdlm_do_lock(struct gdlm_lock *); 166unsigned int gdlm_do_lock(struct gdlm_lock *);
167 167
168int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); 168int gdlm_get_lock(void *, struct lm_lockname *, void **);
169void gdlm_put_lock(lm_lock_t *); 169void gdlm_put_lock(void *);
170unsigned int gdlm_lock(lm_lock_t *, unsigned int, unsigned int, unsigned int); 170unsigned int gdlm_lock(void *, unsigned int, unsigned int, unsigned int);
171unsigned int gdlm_unlock(lm_lock_t *, unsigned int); 171unsigned int gdlm_unlock(void *, unsigned int);
172void gdlm_cancel(lm_lock_t *); 172void gdlm_cancel(void *);
173int gdlm_hold_lvb(lm_lock_t *, char **); 173int gdlm_hold_lvb(void *, char **);
174void gdlm_unhold_lvb(lm_lock_t *, char *); 174void gdlm_unhold_lvb(void *, char *);
175 175
176/* plock.c */ 176/* plock.c */
177 177
178int gdlm_plock_init(void); 178int gdlm_plock_init(void);
179void gdlm_plock_exit(void); 179void gdlm_plock_exit(void);
180int gdlm_plock(lm_lockspace_t *, struct lm_lockname *, struct file *, int, 180int gdlm_plock(void *, struct lm_lockname *, struct file *, int,
181 struct file_lock *); 181 struct file_lock *);
182int gdlm_plock_get(lm_lockspace_t *, struct lm_lockname *, struct file *, 182int gdlm_plock_get(void *, struct lm_lockname *, struct file *,
183 struct file_lock *); 183 struct file_lock *);
184int gdlm_punlock(lm_lockspace_t *, struct lm_lockname *, struct file *, 184int gdlm_punlock(void *, struct lm_lockname *, struct file *,
185 struct file_lock *); 185 struct file_lock *);
186#endif 186#endif
187 187