aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/locking.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-04 09:49:55 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-04 09:49:55 -0400
commit5029996547a9f3988459e11955c13259495308ef (patch)
tree4667c98c19a6f39dc820e4eb648ecfa03b29bce2 /fs/gfs2/locking.c
parente9fc2aa091ab8fa46e60d4c9d06a89305c441652 (diff)
[GFS2] Tidy up locking code
As per Jan Engelhardt's second email, this removes some unused code, and fixes up indenting in various places. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking.c')
-rw-r--r--fs/gfs2/locking.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/gfs2/locking.c b/fs/gfs2/locking.c
index 11c4068105c..fce2001e5e2 100644
--- a/fs/gfs2/locking.c
+++ b/fs/gfs2/locking.c
@@ -27,8 +27,8 @@ struct lmh_wrapper {
/* List of registered low-level locking protocols. A file system selects one
of them by name at mount time, e.g. lock_nolock, lock_dlm. */
-static struct list_head lmh_list;
-static struct mutex lmh_lock;
+static LIST_HEAD(lmh_list);
+static DEFINE_MUTEX(lmh_lock);
/**
* gfs2_register_lockproto - Register a low-level locking protocol
@@ -180,12 +180,6 @@ void gfs2_withdraw_lockproto(struct lm_lockstruct *lockstruct)
mutex_unlock(&lmh_lock);
}
-void __init gfs2_init_lmh(void)
-{
- mutex_init(&lmh_lock);
- INIT_LIST_HEAD(&lmh_list);
-}
-
EXPORT_SYMBOL_GPL(gfs2_register_lockproto);
EXPORT_SYMBOL_GPL(gfs2_unregister_lockproto);