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
*
* 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;
}
/**
- * gfs_unregister_lockproto - Unregister a low-level locking protocol
+ * gfs2_unregister_lockproto - Unregister a low-level locking protocol
* @proto: the protocol definition
*
*/
-void gfs_unregister_lockproto(struct lm_lockops *proto)
+void gfs2_unregister_lockproto(struct lm_lockops *proto)
{
struct lmh_wrapper *lw;
int try = 0;
int error, found;
- retry:
+retry:
mutex_lock(&lmh_lock);
found = 0;
min_lvb_size, flags, lockstruct, fskobj);
if (error)
module_put(lw->lw_ops->lm_owner);
- out:
+out:
mutex_unlock(&lmh_lock);
return error;
}
INIT_LIST_HEAD(&lmh_list);
}
-EXPORT_SYMBOL_GPL(gfs_register_lockproto);
-EXPORT_SYMBOL_GPL(gfs_unregister_lockproto);
+EXPORT_SYMBOL_GPL(gfs2_register_lockproto);
+EXPORT_SYMBOL_GPL(gfs2_unregister_lockproto);