diff options
Diffstat (limited to 'fs/gfs2/locking/dlm/lock.c')
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index e4359b1b7174..b167addf9fd1 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -207,21 +207,21 @@ void gdlm_delete_lp(struct gdlm_lock *lp) | |||
207 | kfree(lp); | 207 | kfree(lp); |
208 | } | 208 | } |
209 | 209 | ||
210 | int gdlm_get_lock(lm_lockspace_t *lockspace, struct lm_lockname *name, | 210 | int gdlm_get_lock(void *lockspace, struct lm_lockname *name, |
211 | lm_lock_t **lockp) | 211 | void **lockp) |
212 | { | 212 | { |
213 | struct gdlm_lock *lp; | 213 | struct gdlm_lock *lp; |
214 | int error; | 214 | int error; |
215 | 215 | ||
216 | error = gdlm_create_lp((struct gdlm_ls *) lockspace, name, &lp); | 216 | error = gdlm_create_lp(lockspace, name, &lp); |
217 | 217 | ||
218 | *lockp = (lm_lock_t *) lp; | 218 | *lockp = lp; |
219 | return error; | 219 | return error; |
220 | } | 220 | } |
221 | 221 | ||
222 | void gdlm_put_lock(lm_lock_t *lock) | 222 | void gdlm_put_lock(void *lock) |
223 | { | 223 | { |
224 | gdlm_delete_lp((struct gdlm_lock *) lock); | 224 | gdlm_delete_lp(lock); |
225 | } | 225 | } |
226 | 226 | ||
227 | unsigned int gdlm_do_lock(struct gdlm_lock *lp) | 227 | unsigned int gdlm_do_lock(struct gdlm_lock *lp) |
@@ -305,10 +305,10 @@ static unsigned int gdlm_do_unlock(struct gdlm_lock *lp) | |||
305 | return LM_OUT_ASYNC; | 305 | return LM_OUT_ASYNC; |
306 | } | 306 | } |
307 | 307 | ||
308 | unsigned int gdlm_lock(lm_lock_t *lock, unsigned int cur_state, | 308 | unsigned int gdlm_lock(void *lock, unsigned int cur_state, |
309 | unsigned int req_state, unsigned int flags) | 309 | unsigned int req_state, unsigned int flags) |
310 | { | 310 | { |
311 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | 311 | struct gdlm_lock *lp = lock; |
312 | 312 | ||
313 | clear_bit(LFL_DLM_CANCEL, &lp->flags); | 313 | clear_bit(LFL_DLM_CANCEL, &lp->flags); |
314 | if (flags & LM_FLAG_NOEXP) | 314 | if (flags & LM_FLAG_NOEXP) |
@@ -321,9 +321,9 @@ unsigned int gdlm_lock(lm_lock_t *lock, unsigned int cur_state, | |||
321 | return gdlm_do_lock(lp); | 321 | return gdlm_do_lock(lp); |
322 | } | 322 | } |
323 | 323 | ||
324 | unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state) | 324 | unsigned int gdlm_unlock(void *lock, unsigned int cur_state) |
325 | { | 325 | { |
326 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | 326 | struct gdlm_lock *lp = lock; |
327 | 327 | ||
328 | clear_bit(LFL_DLM_CANCEL, &lp->flags); | 328 | clear_bit(LFL_DLM_CANCEL, &lp->flags); |
329 | if (lp->cur == DLM_LOCK_IV) | 329 | if (lp->cur == DLM_LOCK_IV) |
@@ -331,9 +331,9 @@ unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state) | |||
331 | return gdlm_do_unlock(lp); | 331 | return gdlm_do_unlock(lp); |
332 | } | 332 | } |
333 | 333 | ||
334 | void gdlm_cancel(lm_lock_t *lock) | 334 | void gdlm_cancel(void *lock) |
335 | { | 335 | { |
336 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | 336 | struct gdlm_lock *lp = lock; |
337 | struct gdlm_ls *ls = lp->ls; | 337 | struct gdlm_ls *ls = lp->ls; |
338 | int error, delay_list = 0; | 338 | int error, delay_list = 0; |
339 | 339 | ||
@@ -464,9 +464,9 @@ static void unhold_null_lock(struct gdlm_lock *lp) | |||
464 | intact on the resource while the lvb is "held" even if it's holding no locks | 464 | intact on the resource while the lvb is "held" even if it's holding no locks |
465 | on the resource. */ | 465 | on the resource. */ |
466 | 466 | ||
467 | int gdlm_hold_lvb(lm_lock_t *lock, char **lvbp) | 467 | int gdlm_hold_lvb(void *lock, char **lvbp) |
468 | { | 468 | { |
469 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | 469 | struct gdlm_lock *lp = lock; |
470 | int error; | 470 | int error; |
471 | 471 | ||
472 | error = gdlm_add_lvb(lp); | 472 | error = gdlm_add_lvb(lp); |
@@ -482,9 +482,9 @@ int gdlm_hold_lvb(lm_lock_t *lock, char **lvbp) | |||
482 | return error; | 482 | return error; |
483 | } | 483 | } |
484 | 484 | ||
485 | void gdlm_unhold_lvb(lm_lock_t *lock, char *lvb) | 485 | void gdlm_unhold_lvb(void *lock, char *lvb) |
486 | { | 486 | { |
487 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | 487 | struct gdlm_lock *lp = lock; |
488 | 488 | ||
489 | unhold_null_lock(lp); | 489 | unhold_null_lock(lp); |
490 | gdlm_del_lvb(lp); | 490 | gdlm_del_lvb(lp); |