aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking.c
diff options
context:
space:
mode:
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 11c4068105cc..fce2001e5e25 100644
--- a/fs/gfs2/locking.c
+++ b/fs/gfs2/locking.c
@@ -27,8 +27,8 @@ struct lmh_wrapper {
27/* List of registered low-level locking protocols. A file system selects one 27/* List of registered low-level locking protocols. A file system selects one
28 of them by name at mount time, e.g. lock_nolock, lock_dlm. */ 28 of them by name at mount time, e.g. lock_nolock, lock_dlm. */
29 29
30static struct list_head lmh_list; 30static LIST_HEAD(lmh_list);
31static struct mutex lmh_lock; 31static DEFINE_MUTEX(lmh_lock);
32 32
33/** 33/**
34 * gfs2_register_lockproto - Register a low-level locking protocol 34 * gfs2_register_lockproto - Register a low-level locking protocol
@@ -180,12 +180,6 @@ void gfs2_withdraw_lockproto(struct lm_lockstruct *lockstruct)
180 mutex_unlock(&lmh_lock); 180 mutex_unlock(&lmh_lock);
181} 181}
182 182
183void __init gfs2_init_lmh(void)
184{
185 mutex_init(&lmh_lock);
186 INIT_LIST_HEAD(&lmh_list);
187}
188
189EXPORT_SYMBOL_GPL(gfs2_register_lockproto); 183EXPORT_SYMBOL_GPL(gfs2_register_lockproto);
190EXPORT_SYMBOL_GPL(gfs2_unregister_lockproto); 184EXPORT_SYMBOL_GPL(gfs2_unregister_lockproto);
191 185