diff options
author | David Teigland <teigland@redhat.com> | 2006-02-23 05:00:56 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-23 05:00:56 -0500 |
commit | 8d3b35a4af87965d1873872b21e504558f62116a (patch) | |
tree | e987657a3305a26cd746d4ceb9540178dd74a895 /fs/gfs2/locking/dlm/lock.c | |
parent | 3bcd3687f895f178fa8480a7bcc47a363817354a (diff) |
[DLM] Remove support for range locks (II)
This is the second of two patches removing support for range
locks from the DLM
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking/dlm/lock.c')
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index d799865b64a4..666d696dc8ce 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -223,7 +223,7 @@ void gdlm_put_lock(lm_lock_t *lock) | |||
223 | gdlm_delete_lp((struct gdlm_lock *) lock); | 223 | gdlm_delete_lp((struct gdlm_lock *) lock); |
224 | } | 224 | } |
225 | 225 | ||
226 | unsigned int gdlm_do_lock(struct gdlm_lock *lp, struct dlm_range *range) | 226 | unsigned int gdlm_do_lock(struct gdlm_lock *lp) |
227 | { | 227 | { |
228 | struct gdlm_ls *ls = lp->ls; | 228 | struct gdlm_ls *ls = lp->ls; |
229 | struct gdlm_strname str; | 229 | struct gdlm_strname str; |
@@ -258,7 +258,7 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp, struct dlm_range *range) | |||
258 | 258 | ||
259 | error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf, | 259 | error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf, |
260 | str.name, str.namelen, 0, gdlm_ast, (void *) lp, | 260 | str.name, str.namelen, 0, gdlm_ast, (void *) lp, |
261 | bast ? gdlm_bast : NULL, range); | 261 | bast ? gdlm_bast : NULL); |
262 | 262 | ||
263 | if ((error == -EAGAIN) && (lp->lkf & DLM_LKF_NOQUEUE)) { | 263 | if ((error == -EAGAIN) && (lp->lkf & DLM_LKF_NOQUEUE)) { |
264 | lp->lksb.sb_status = -EAGAIN; | 264 | lp->lksb.sb_status = -EAGAIN; |
@@ -316,7 +316,7 @@ unsigned int gdlm_lock(lm_lock_t *lock, unsigned int cur_state, | |||
316 | lp->req = make_mode(req_state); | 316 | lp->req = make_mode(req_state); |
317 | lp->lkf = make_flags(lp, flags, lp->cur, lp->req); | 317 | lp->lkf = make_flags(lp, flags, lp->cur, lp->req); |
318 | 318 | ||
319 | return gdlm_do_lock(lp, NULL); | 319 | return gdlm_do_lock(lp); |
320 | } | 320 | } |
321 | 321 | ||
322 | unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state) | 322 | unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state) |
@@ -425,7 +425,7 @@ static int hold_null_lock(struct gdlm_lock *lp) | |||
425 | set_bit(LFL_INLOCK, &lpn->flags); | 425 | set_bit(LFL_INLOCK, &lpn->flags); |
426 | 426 | ||
427 | init_completion(&lpn->ast_wait); | 427 | init_completion(&lpn->ast_wait); |
428 | gdlm_do_lock(lpn, NULL); | 428 | gdlm_do_lock(lpn); |
429 | wait_for_completion(&lpn->ast_wait); | 429 | wait_for_completion(&lpn->ast_wait); |
430 | error = lp->lksb.sb_status; | 430 | error = lp->lksb.sb_status; |
431 | if (error) { | 431 | if (error) { |
@@ -499,7 +499,7 @@ void gdlm_sync_lvb(lm_lock_t *lock, char *lvb) | |||
499 | lp->req = DLM_LOCK_EX; | 499 | lp->req = DLM_LOCK_EX; |
500 | lp->lkf = make_flags(lp, 0, lp->cur, lp->req); | 500 | lp->lkf = make_flags(lp, 0, lp->cur, lp->req); |
501 | 501 | ||
502 | gdlm_do_lock(lp, NULL); | 502 | gdlm_do_lock(lp); |
503 | wait_for_completion(&lp->ast_wait); | 503 | wait_for_completion(&lp->ast_wait); |
504 | } | 504 | } |
505 | 505 | ||