diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-07 15:50:20 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-07 15:50:20 -0400 |
commit | 1c089c325d5cda0f64a3cf8edf3aaafa148f200a (patch) | |
tree | f59c862b0d84ffc06d7c208607fc26bd6f8da4b5 /fs/gfs2/locking/dlm/thread.c | |
parent | b9201ce9a826f5ae4a8e153b52cf5d29f525ca11 (diff) |
[GFS2] Remove one typedef
This removes one of the typedefs from the locking interface. It
is replaced by a forward declaration of the gfs2 superblock. The
other two are not so easy to solve since in their case, they
can refer to one of two possible structures.
Cc: David Teigland <teigland@redhat.com>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking/dlm/thread.c')
-rw-r--r-- | fs/gfs2/locking/dlm/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | } |