diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-08 10:17:58 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-08 10:17:58 -0400 |
commit | 9b47c11d1cbedcba685c9bd90c73fd41acdfab0e (patch) | |
tree | 799f05877bd8973262da54852b7b8bf9a9916998 /fs/gfs2/locking/dlm/lock_dlm.h | |
parent | a2c4580797f62b0dd9a48f1e0ce3fe8b8fd76262 (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.h | 22 |
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 *); | |||
165 | void gdlm_delete_lp(struct gdlm_lock *); | 165 | void gdlm_delete_lp(struct gdlm_lock *); |
166 | unsigned int gdlm_do_lock(struct gdlm_lock *); | 166 | unsigned int gdlm_do_lock(struct gdlm_lock *); |
167 | 167 | ||
168 | int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); | 168 | int gdlm_get_lock(void *, struct lm_lockname *, void **); |
169 | void gdlm_put_lock(lm_lock_t *); | 169 | void gdlm_put_lock(void *); |
170 | unsigned int gdlm_lock(lm_lock_t *, unsigned int, unsigned int, unsigned int); | 170 | unsigned int gdlm_lock(void *, unsigned int, unsigned int, unsigned int); |
171 | unsigned int gdlm_unlock(lm_lock_t *, unsigned int); | 171 | unsigned int gdlm_unlock(void *, unsigned int); |
172 | void gdlm_cancel(lm_lock_t *); | 172 | void gdlm_cancel(void *); |
173 | int gdlm_hold_lvb(lm_lock_t *, char **); | 173 | int gdlm_hold_lvb(void *, char **); |
174 | void gdlm_unhold_lvb(lm_lock_t *, char *); | 174 | void gdlm_unhold_lvb(void *, char *); |
175 | 175 | ||
176 | /* plock.c */ | 176 | /* plock.c */ |
177 | 177 | ||
178 | int gdlm_plock_init(void); | 178 | int gdlm_plock_init(void); |
179 | void gdlm_plock_exit(void); | 179 | void gdlm_plock_exit(void); |
180 | int gdlm_plock(lm_lockspace_t *, struct lm_lockname *, struct file *, int, | 180 | int gdlm_plock(void *, struct lm_lockname *, struct file *, int, |
181 | struct file_lock *); | 181 | struct file_lock *); |
182 | int gdlm_plock_get(lm_lockspace_t *, struct lm_lockname *, struct file *, | 182 | int gdlm_plock_get(void *, struct lm_lockname *, struct file *, |
183 | struct file_lock *); | 183 | struct file_lock *); |
184 | int gdlm_punlock(lm_lockspace_t *, struct lm_lockname *, struct file *, | 184 | int gdlm_punlock(void *, struct lm_lockname *, struct file *, |
185 | struct file_lock *); | 185 | struct file_lock *); |
186 | #endif | 186 | #endif |
187 | 187 | ||