summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/lm_interface.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-07 15:50:20 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-07 15:50:20 -0400
commit1c089c325d5cda0f64a3cf8edf3aaafa148f200a (patch)
treef59c862b0d84ffc06d7c208607fc26bd6f8da4b5 /fs/gfs2/lm_interface.h
parentb9201ce9a826f5ae4a8e153b52cf5d29f525ca11 (diff)
downloadop-kernel-dev-1c089c325d5cda0f64a3cf8edf3aaafa148f200a.zip
op-kernel-dev-1c089c325d5cda0f64a3cf8edf3aaafa148f200a.tar.gz
[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/lm_interface.h')
-rw-r--r--fs/gfs2/lm_interface.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/gfs2/lm_interface.h b/fs/gfs2/lm_interface.h
index e2dfc3d..75835e0 100644
--- a/fs/gfs2/lm_interface.h
+++ b/fs/gfs2/lm_interface.h
@@ -17,10 +17,9 @@
typedef void lm_lockspace_t;
typedef void lm_lock_t;
-typedef void lm_fsdata_t;
+struct gfs2_sbd;
-typedef void (*lm_callback_t) (lm_fsdata_t *fsdata, unsigned int type,
- void *data);
+typedef void (*lm_callback_t) (struct gfs2_sbd *sdp, unsigned int type, void *data);
/*
* lm_mount() flags
@@ -183,7 +182,7 @@ struct lm_lockops {
*/
int (*lm_mount) (char *table_name, char *host_data,
- lm_callback_t cb, lm_fsdata_t *fsdata,
+ lm_callback_t cb, struct gfs2_sbd *sdp,
unsigned int min_lvb_size, int flags,
struct lm_lockstruct *lockstruct,
struct kobject *fskobj);
@@ -275,7 +274,7 @@ void gfs2_unregister_lockproto(struct lm_lockops *proto);
*/
int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data,
- lm_callback_t cb, lm_fsdata_t *fsdata,
+ lm_callback_t cb, struct gfs2_sbd *sdp,
unsigned int min_lvb_size, int flags,
struct lm_lockstruct *lockstruct,
struct kobject *fskobj);
OpenPOWER on IntegriCloud