Commit 2b557f6d authored by Steven Whitehouse's avatar Steven Whitehouse

[GFS2] Fix gfs_ prefix in locking.c

The previous patch didn't change all the gfs_ to gfs2_ so
this is the remainder.
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent ad73c67e
...@@ -31,13 +31,13 @@ static struct list_head lmh_list; ...@@ -31,13 +31,13 @@ static struct list_head lmh_list;
static struct mutex lmh_lock; static struct mutex lmh_lock;
/** /**
* gfs_register_lockproto - Register a low-level locking protocol * gfs2_register_lockproto - Register a low-level locking protocol
* @proto: the protocol definition * @proto: the protocol definition
* *
* Returns: 0 on success, -EXXX on failure * Returns: 0 on success, -EXXX on failure
*/ */
int gfs_register_lockproto(struct lm_lockops *proto) int gfs2_register_lockproto(struct lm_lockops *proto)
{ {
struct lmh_wrapper *lw; struct lmh_wrapper *lw;
...@@ -67,12 +67,12 @@ int gfs_register_lockproto(struct lm_lockops *proto) ...@@ -67,12 +67,12 @@ int gfs_register_lockproto(struct lm_lockops *proto)
} }
/** /**
* gfs_unregister_lockproto - Unregister a low-level locking protocol * gfs2_unregister_lockproto - Unregister a low-level locking protocol
* @proto: the protocol definition * @proto: the protocol definition
* *
*/ */
void gfs_unregister_lockproto(struct lm_lockops *proto) void gfs2_unregister_lockproto(struct lm_lockops *proto)
{ {
struct lmh_wrapper *lw; struct lmh_wrapper *lw;
...@@ -117,7 +117,7 @@ int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data, ...@@ -117,7 +117,7 @@ int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data,
int try = 0; int try = 0;
int error, found; int error, found;
retry: retry:
mutex_lock(&lmh_lock); mutex_lock(&lmh_lock);
found = 0; found = 0;
...@@ -151,7 +151,7 @@ int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data, ...@@ -151,7 +151,7 @@ int gfs2_mount_lockproto(char *proto_name, char *table_name, char *host_data,
min_lvb_size, flags, lockstruct, fskobj); min_lvb_size, flags, lockstruct, fskobj);
if (error) if (error)
module_put(lw->lw_ops->lm_owner); module_put(lw->lw_ops->lm_owner);
out: out:
mutex_unlock(&lmh_lock); mutex_unlock(&lmh_lock);
return error; return error;
} }
...@@ -186,6 +186,6 @@ void __init gfs2_init_lmh(void) ...@@ -186,6 +186,6 @@ void __init gfs2_init_lmh(void)
INIT_LIST_HEAD(&lmh_list); INIT_LIST_HEAD(&lmh_list);
} }
EXPORT_SYMBOL_GPL(gfs_register_lockproto); EXPORT_SYMBOL_GPL(gfs2_register_lockproto);
EXPORT_SYMBOL_GPL(gfs_unregister_lockproto); EXPORT_SYMBOL_GPL(gfs2_unregister_lockproto);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment