aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-07 17:35:48 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-07 17:35:48 -0400
commit5ce311ebdb90429519f7c6d2092e4ae6ca8cba74 (patch)
tree7492b442e0d18a7aa745e696e6595856f8becfe5 /fs/gfs2/locking
parent1c089c325d5cda0f64a3cf8edf3aaafa148f200a (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')
-rw-r--r--fs/gfs2/locking/dlm/lock.c17
-rw-r--r--fs/gfs2/locking/dlm/lock_dlm.h1
-rw-r--r--fs/gfs2/locking/dlm/mount.c1
-rw-r--r--fs/gfs2/locking/nolock/main.c12
4 files changed, 0 insertions, 31 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
493void 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
510void gdlm_submit_delayed(struct gdlm_ls *ls) 493void gdlm_submit_delayed(struct gdlm_ls *ls)
511{ 494{
512 struct gdlm_lock *lp, *safe; 495 struct gdlm_lock *lp, *safe;
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h
index e6898d236521..a4f534a0ecff 100644
--- a/fs/gfs2/locking/dlm/lock_dlm.h
+++ b/fs/gfs2/locking/dlm/lock_dlm.h
@@ -172,7 +172,6 @@ unsigned int gdlm_unlock(lm_lock_t *, unsigned int);
172void gdlm_cancel(lm_lock_t *); 172void gdlm_cancel(lm_lock_t *);
173int gdlm_hold_lvb(lm_lock_t *, char **); 173int gdlm_hold_lvb(lm_lock_t *, char **);
174void gdlm_unhold_lvb(lm_lock_t *, char *); 174void gdlm_unhold_lvb(lm_lock_t *, char *);
175void gdlm_sync_lvb(lm_lock_t *, char *);
176 175
177/* plock.c */ 176/* plock.c */
178 177
diff --git a/fs/gfs2/locking/dlm/mount.c b/fs/gfs2/locking/dlm/mount.c
index 8a1764f4d71c..832fb819a2b5 100644
--- a/fs/gfs2/locking/dlm/mount.c
+++ b/fs/gfs2/locking/dlm/mount.c
@@ -249,7 +249,6 @@ struct lm_lockops gdlm_ops = {
249 .lm_cancel = gdlm_cancel, 249 .lm_cancel = gdlm_cancel,
250 .lm_hold_lvb = gdlm_hold_lvb, 250 .lm_hold_lvb = gdlm_hold_lvb,
251 .lm_unhold_lvb = gdlm_unhold_lvb, 251 .lm_unhold_lvb = gdlm_unhold_lvb,
252 .lm_sync_lvb = gdlm_sync_lvb,
253 .lm_recovery_done = gdlm_recovery_done, 252 .lm_recovery_done = gdlm_recovery_done,
254 .lm_owner = THIS_MODULE, 253 .lm_owner = THIS_MODULE,
255}; 254};
diff --git a/fs/gfs2/locking/nolock/main.c b/fs/gfs2/locking/nolock/main.c
index e326079430a2..ba7399787f62 100644
--- a/fs/gfs2/locking/nolock/main.c
+++ b/fs/gfs2/locking/nolock/main.c
@@ -162,17 +162,6 @@ static void nolock_unhold_lvb(lm_lock_t *lock, char *lvb)
162 kfree(lvb); 162 kfree(lvb);
163} 163}
164 164
165/**
166 * nolock_sync_lvb - sync out the value of a lvb
167 * @lock: the lock the LVB is associated with
168 * @lvb: the lock value block
169 *
170 */
171
172static void nolock_sync_lvb(lm_lock_t *lock, char *lvb)
173{
174}
175
176static int nolock_plock_get(lm_lockspace_t *lockspace, struct lm_lockname *name, 165static int nolock_plock_get(lm_lockspace_t *lockspace, struct lm_lockname *name,
177 struct file *file, struct file_lock *fl) 166 struct file *file, struct file_lock *fl)
178{ 167{
@@ -221,7 +210,6 @@ static struct lm_lockops nolock_ops = {
221 .lm_cancel = nolock_cancel, 210 .lm_cancel = nolock_cancel,
222 .lm_hold_lvb = nolock_hold_lvb, 211 .lm_hold_lvb = nolock_hold_lvb,
223 .lm_unhold_lvb = nolock_unhold_lvb, 212 .lm_unhold_lvb = nolock_unhold_lvb,
224 .lm_sync_lvb = nolock_sync_lvb,
225 .lm_plock_get = nolock_plock_get, 213 .lm_plock_get = nolock_plock_get,
226 .lm_plock = nolock_plock, 214 .lm_plock = nolock_plock,
227 .lm_punlock = nolock_punlock, 215 .lm_punlock = nolock_punlock,