/*
* Lock module bottom interface. A lock module makes itself available to GFS
* with these functions.
- *
- * For the time being, we copy the gfs1 lock module bottom interface so the
- * same lock modules can be used with both gfs1 and gfs2 (it won't be possible
- * to load both gfs1 and gfs2 at once.) Eventually the lock modules will fork
- * for gfs1/gfs2 and this API can change to the gfs2_ prefix.
*/
-int gfs_register_lockproto(struct lm_lockops *proto);
+int gfs2_register_lockproto(struct lm_lockops *proto);
-void gfs_unregister_lockproto(struct lm_lockops *proto);
+void gfs2_unregister_lockproto(struct lm_lockops *proto);
/*
* Lock module top interface. GFS calls these functions when mounting or
{
int error;
- error = gfs_register_lockproto(&gdlm_ops);
+ error = gfs2_register_lockproto(&gdlm_ops);
if (error) {
printk(KERN_WARNING "lock_dlm: can't register protocol: %d\n",
error);
error = gdlm_sysfs_init();
if (error) {
- gfs_unregister_lockproto(&gdlm_ops);
+ gfs2_unregister_lockproto(&gdlm_ops);
return error;
}
error = gdlm_plock_init();
if (error) {
gdlm_sysfs_exit();
- gfs_unregister_lockproto(&gdlm_ops);
+ gfs2_unregister_lockproto(&gdlm_ops);
return error;
}
{
gdlm_plock_exit();
gdlm_sysfs_exit();
- gfs_unregister_lockproto(&gdlm_ops);
+ gfs2_unregister_lockproto(&gdlm_ops);
}
module_init(init_lock_dlm);
{
int error;
- error = gfs_register_lockproto(&nolock_ops);
+ error = gfs2_register_lockproto(&nolock_ops);
if (error) {
printk(KERN_WARNING
"lock_nolock: can't register protocol: %d\n", error);
static void __exit exit_nolock(void)
{
- gfs_unregister_lockproto(&nolock_ops);
+ gfs2_unregister_lockproto(&nolock_ops);
}
module_init(init_nolock);