aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking/dlm/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/locking/dlm/mount.c')
-rw-r--r--fs/gfs2/locking/dlm/mount.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/gfs2/locking/dlm/mount.c b/fs/gfs2/locking/dlm/mount.c
index 832fb819a2b5..1f94dd35a943 100644
--- a/fs/gfs2/locking/dlm/mount.c
+++ b/fs/gfs2/locking/dlm/mount.c
@@ -11,7 +11,7 @@
11 11
12int gdlm_drop_count; 12int gdlm_drop_count;
13int gdlm_drop_period; 13int gdlm_drop_period;
14struct lm_lockops gdlm_ops; 14const struct lm_lockops gdlm_ops;
15 15
16 16
17static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp, 17static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp,
@@ -120,7 +120,7 @@ static int make_args(struct gdlm_ls *ls, char *data_arg, int *nodir)
120} 120}
121 121
122static int gdlm_mount(char *table_name, char *host_data, 122static int gdlm_mount(char *table_name, char *host_data,
123 lm_callback_t cb, struct gfs2_sbd *sdp, 123 lm_callback_t cb, void *cb_data,
124 unsigned int min_lvb_size, int flags, 124 unsigned int min_lvb_size, int flags,
125 struct lm_lockstruct *lockstruct, 125 struct lm_lockstruct *lockstruct,
126 struct kobject *fskobj) 126 struct kobject *fskobj)
@@ -131,7 +131,7 @@ static int gdlm_mount(char *table_name, char *host_data,
131 if (min_lvb_size > GDLM_LVB_SIZE) 131 if (min_lvb_size > GDLM_LVB_SIZE)
132 goto out; 132 goto out;
133 133
134 ls = init_gdlm(cb, sdp, flags, table_name); 134 ls = init_gdlm(cb, cb_data, flags, table_name);
135 if (!ls) 135 if (!ls)
136 goto out; 136 goto out;
137 137
@@ -174,9 +174,9 @@ out:
174 return error; 174 return error;
175} 175}
176 176
177static void gdlm_unmount(lm_lockspace_t *lockspace) 177static void gdlm_unmount(void *lockspace)
178{ 178{
179 struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; 179 struct gdlm_ls *ls = lockspace;
180 int rv; 180 int rv;
181 181
182 log_debug("unmount flags %lx", ls->flags); 182 log_debug("unmount flags %lx", ls->flags);
@@ -198,18 +198,18 @@ out:
198 kfree(ls); 198 kfree(ls);
199} 199}
200 200
201static void gdlm_recovery_done(lm_lockspace_t *lockspace, unsigned int jid, 201static void gdlm_recovery_done(void *lockspace, unsigned int jid,
202 unsigned int message) 202 unsigned int message)
203{ 203{
204 struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; 204 struct gdlm_ls *ls = lockspace;
205 ls->recover_jid_done = jid; 205 ls->recover_jid_done = jid;
206 ls->recover_jid_status = message; 206 ls->recover_jid_status = message;
207 kobject_uevent(&ls->kobj, KOBJ_CHANGE); 207 kobject_uevent(&ls->kobj, KOBJ_CHANGE);
208} 208}
209 209
210static void gdlm_others_may_mount(lm_lockspace_t *lockspace) 210static void gdlm_others_may_mount(void *lockspace)
211{ 211{
212 struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; 212 struct gdlm_ls *ls = lockspace;
213 ls->first_done = 1; 213 ls->first_done = 1;
214 kobject_uevent(&ls->kobj, KOBJ_CHANGE); 214 kobject_uevent(&ls->kobj, KOBJ_CHANGE);
215} 215}
@@ -218,9 +218,9 @@ static void gdlm_others_may_mount(lm_lockspace_t *lockspace)
218 other mounters, and lets us know (sets WITHDRAW flag). Then, 218 other mounters, and lets us know (sets WITHDRAW flag). Then,
219 userspace leaves the mount group while we leave the lockspace. */ 219 userspace leaves the mount group while we leave the lockspace. */
220 220
221static void gdlm_withdraw(lm_lockspace_t *lockspace) 221static void gdlm_withdraw(void *lockspace)
222{ 222{
223 struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; 223 struct gdlm_ls *ls = lockspace;
224 224
225 kobject_uevent(&ls->kobj, KOBJ_OFFLINE); 225 kobject_uevent(&ls->kobj, KOBJ_OFFLINE);
226 226
@@ -233,7 +233,7 @@ static void gdlm_withdraw(lm_lockspace_t *lockspace)
233 gdlm_kobject_release(ls); 233 gdlm_kobject_release(ls);
234} 234}
235 235
236struct lm_lockops gdlm_ops = { 236const struct lm_lockops gdlm_ops = {
237 .lm_proto_name = "lock_dlm", 237 .lm_proto_name = "lock_dlm",
238 .lm_mount = gdlm_mount, 238 .lm_mount = gdlm_mount,
239 .lm_others_may_mount = gdlm_others_may_mount, 239 .lm_others_may_mount = gdlm_others_may_mount,