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.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.c')
-rw-r--r-- | fs/gfs2/locking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/locking.c b/fs/gfs2/locking.c index fce2001e5e25..31421ee6d863 100644 --- a/fs/gfs2/locking.c +++ b/fs/gfs2/locking.c | |||
@@ -99,7 +99,7 @@ void gfs2_unregister_lockproto(struct lm_lockops *proto) | |||
99 | * @table_name - the name of the lock space | 99 | * @table_name - the name of the lock space |
100 | * @host_data - data specific to this host | 100 | * @host_data - data specific to this host |
101 | * @cb - the callback to the code using the lock module | 101 | * @cb - the callback to the code using the lock module |
102 | * @fsdata - data to pass back with the callback | 102 | * @sdp - The GFS2 superblock |
103 | * @min_lvb_size - the mininum LVB size that the caller can deal with | 103 | * @min_lvb_size - the mininum LVB size that the caller can deal with |
104 | * @flags - LM_MFLAG_* | 104 | * @flags - LM_MFLAG_* |
105 | * @lockstruct - a structure returned describing the mount | 105 | * @lockstruct - a structure returned describing the mount |
@@ -108,7 +108,7 @@ void gfs2_unregister_lockproto(struct lm_lockops *proto) | |||
108 | */ | 108 | */ |
109 | 109 | ||
110 | int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data, | 110 | int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data, |
111 | lm_callback_t cb, lm_fsdata_t *fsdata, | 111 | lm_callback_t cb, struct gfs2_sbd *sdp, |
112 | unsigned int min_lvb_size, int flags, | 112 | unsigned int min_lvb_size, int flags, |
113 | struct lm_lockstruct *lockstruct, | 113 | struct lm_lockstruct *lockstruct, |
114 | struct kobject *fskobj) | 114 | struct kobject *fskobj) |
@@ -147,7 +147,7 @@ retry: | |||
147 | goto retry; | 147 | goto retry; |
148 | } | 148 | } |
149 | 149 | ||
150 | error = lw->lw_ops->lm_mount(table_name, host_data, cb, fsdata, | 150 | error = lw->lw_ops->lm_mount(table_name, host_data, cb, sdp, |
151 | min_lvb_size, flags, lockstruct, fskobj); | 151 | min_lvb_size, flags, lockstruct, fskobj); |
152 | if (error) | 152 | if (error) |
153 | module_put(lw->lw_ops->lm_owner); | 153 | module_put(lw->lw_ops->lm_owner); |