diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-07 17:35:48 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-07 17:35:48 -0400 |
commit | 5ce311ebdb90429519f7c6d2092e4ae6ca8cba74 (patch) | |
tree | 7492b442e0d18a7aa745e696e6595856f8becfe5 /fs/gfs2/locking/dlm/lock.c | |
parent | 1c089c325d5cda0f64a3cf8edf3aaafa148f200a (diff) |
[GFS2] Remove unused sync_lvb code from lock modules
This code is no longer used for anything and can be removed
from the locking modules. The sync_lvb function is not required
as this happens automatically with the current locking system.
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 | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index dceea419b94b..e4359b1b7174 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -490,23 +490,6 @@ void gdlm_unhold_lvb(lm_lock_t *lock, char *lvb) | |||
490 | gdlm_del_lvb(lp); | 490 | gdlm_del_lvb(lp); |
491 | } | 491 | } |
492 | 492 | ||
493 | void gdlm_sync_lvb(lm_lock_t *lock, char *lvb) | ||
494 | { | ||
495 | struct gdlm_lock *lp = (struct gdlm_lock *) lock; | ||
496 | |||
497 | if (lp->cur != DLM_LOCK_EX) | ||
498 | return; | ||
499 | |||
500 | init_completion(&lp->ast_wait); | ||
501 | set_bit(LFL_SYNC_LVB, &lp->flags); | ||
502 | |||
503 | lp->req = DLM_LOCK_EX; | ||
504 | lp->lkf = make_flags(lp, 0, lp->cur, lp->req); | ||
505 | |||
506 | gdlm_do_lock(lp); | ||
507 | wait_for_completion(&lp->ast_wait); | ||
508 | } | ||
509 | |||
510 | void gdlm_submit_delayed(struct gdlm_ls *ls) | 493 | void gdlm_submit_delayed(struct gdlm_ls *ls) |
511 | { | 494 | { |
512 | struct gdlm_lock *lp, *safe; | 495 | struct gdlm_lock *lp, *safe; |