diff options
Diffstat (limited to 'fs/gfs2/locking/dlm')
-rw-r--r-- | fs/gfs2/locking/dlm/lock_dlm.h | 2 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/mount.c | 8 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/sysfs.c | 2 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/thread.c | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h index c7b6e370258f..e6898d236521 100644 --- a/fs/gfs2/locking/dlm/lock_dlm.h +++ b/fs/gfs2/locking/dlm/lock_dlm.h | |||
@@ -67,7 +67,7 @@ struct gdlm_ls { | |||
67 | int fsflags; | 67 | int fsflags; |
68 | dlm_lockspace_t *dlm_lockspace; | 68 | dlm_lockspace_t *dlm_lockspace; |
69 | lm_callback_t fscb; | 69 | lm_callback_t fscb; |
70 | lm_fsdata_t *fsdata; | 70 | struct gfs2_sbd *sdp; |
71 | int recover_jid; | 71 | int recover_jid; |
72 | int recover_jid_done; | 72 | int recover_jid_done; |
73 | int recover_jid_status; | 73 | int recover_jid_status; |
diff --git a/fs/gfs2/locking/dlm/mount.c b/fs/gfs2/locking/dlm/mount.c index 82ac00af84a3..8a1764f4d71c 100644 --- a/fs/gfs2/locking/dlm/mount.c +++ b/fs/gfs2/locking/dlm/mount.c | |||
@@ -14,7 +14,7 @@ int gdlm_drop_period; | |||
14 | struct lm_lockops gdlm_ops; | 14 | struct lm_lockops gdlm_ops; |
15 | 15 | ||
16 | 16 | ||
17 | static struct gdlm_ls *init_gdlm(lm_callback_t cb, lm_fsdata_t *fsdata, | 17 | static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp, |
18 | int flags, char *table_name) | 18 | int flags, char *table_name) |
19 | { | 19 | { |
20 | struct gdlm_ls *ls; | 20 | struct gdlm_ls *ls; |
@@ -27,7 +27,7 @@ static struct gdlm_ls *init_gdlm(lm_callback_t cb, lm_fsdata_t *fsdata, | |||
27 | ls->drop_locks_count = gdlm_drop_count; | 27 | ls->drop_locks_count = gdlm_drop_count; |
28 | ls->drop_locks_period = gdlm_drop_period; | 28 | ls->drop_locks_period = gdlm_drop_period; |
29 | ls->fscb = cb; | 29 | ls->fscb = cb; |
30 | ls->fsdata = fsdata; | 30 | ls->sdp = sdp; |
31 | ls->fsflags = flags; | 31 | ls->fsflags = flags; |
32 | spin_lock_init(&ls->async_lock); | 32 | spin_lock_init(&ls->async_lock); |
33 | INIT_LIST_HEAD(&ls->complete); | 33 | INIT_LIST_HEAD(&ls->complete); |
@@ -120,7 +120,7 @@ static int make_args(struct gdlm_ls *ls, char *data_arg, int *nodir) | |||
120 | } | 120 | } |
121 | 121 | ||
122 | static int gdlm_mount(char *table_name, char *host_data, | 122 | static int gdlm_mount(char *table_name, char *host_data, |
123 | lm_callback_t cb, lm_fsdata_t *fsdata, | 123 | lm_callback_t cb, struct gfs2_sbd *sdp, |
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, fsdata, flags, table_name); | 134 | ls = init_gdlm(cb, sdp, flags, table_name); |
135 | if (!ls) | 135 | if (!ls) |
136 | goto out; | 136 | goto out; |
137 | 137 | ||
diff --git a/fs/gfs2/locking/dlm/sysfs.c b/fs/gfs2/locking/dlm/sysfs.c index c1237a91fc68..29ae06f94944 100644 --- a/fs/gfs2/locking/dlm/sysfs.c +++ b/fs/gfs2/locking/dlm/sysfs.c | |||
@@ -102,7 +102,7 @@ static ssize_t recover_show(struct gdlm_ls *ls, char *buf) | |||
102 | static ssize_t recover_store(struct gdlm_ls *ls, const char *buf, size_t len) | 102 | static ssize_t recover_store(struct gdlm_ls *ls, const char *buf, size_t len) |
103 | { | 103 | { |
104 | ls->recover_jid = simple_strtol(buf, NULL, 0); | 104 | ls->recover_jid = simple_strtol(buf, NULL, 0); |
105 | ls->fscb(ls->fsdata, LM_CB_NEED_RECOVERY, &ls->recover_jid); | 105 | ls->fscb(ls->sdp, LM_CB_NEED_RECOVERY, &ls->recover_jid); |
106 | return len; | 106 | return len; |
107 | } | 107 | } |
108 | 108 | ||
diff --git a/fs/gfs2/locking/dlm/thread.c b/fs/gfs2/locking/dlm/thread.c index d4895ec242f6..554bf882a4c2 100644 --- a/fs/gfs2/locking/dlm/thread.c +++ b/fs/gfs2/locking/dlm/thread.c | |||
@@ -41,7 +41,7 @@ static void process_blocking(struct gdlm_lock *lp, int bast_mode) | |||
41 | gdlm_assert(0, "unknown bast mode %u", lp->bast_mode); | 41 | gdlm_assert(0, "unknown bast mode %u", lp->bast_mode); |
42 | } | 42 | } |
43 | 43 | ||
44 | ls->fscb(ls->fsdata, cb, &lp->lockname); | 44 | ls->fscb(ls->sdp, cb, &lp->lockname); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void process_complete(struct gdlm_lock *lp) | 47 | static void process_complete(struct gdlm_lock *lp) |
@@ -232,7 +232,7 @@ out: | |||
232 | (lp->cur > DLM_LOCK_NL) && (prev_mode > DLM_LOCK_NL)) | 232 | (lp->cur > DLM_LOCK_NL) && (prev_mode > DLM_LOCK_NL)) |
233 | acb.lc_ret |= LM_OUT_CACHEABLE; | 233 | acb.lc_ret |= LM_OUT_CACHEABLE; |
234 | 234 | ||
235 | ls->fscb(ls->fsdata, LM_CB_ASYNC, &acb); | 235 | ls->fscb(ls->sdp, LM_CB_ASYNC, &acb); |
236 | } | 236 | } |
237 | 237 | ||
238 | static inline int no_work(struct gdlm_ls *ls, int blocking) | 238 | static inline int no_work(struct gdlm_ls *ls, int blocking) |
@@ -318,7 +318,7 @@ static int gdlm_thread(void *data) | |||
318 | gdlm_do_lock(lp); | 318 | gdlm_do_lock(lp); |
319 | 319 | ||
320 | if (drop) | 320 | if (drop) |
321 | ls->fscb(ls->fsdata, LM_CB_DROPLOCKS, NULL); | 321 | ls->fscb(ls->sdp, LM_CB_DROPLOCKS, NULL); |
322 | 322 | ||
323 | schedule(); | 323 | schedule(); |
324 | } | 324 | } |