Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38776
b: refs/heads/master
c: 3120ec5
h: refs/heads/master
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Aug 7, 2006
1 parent e81eb39 commit b4d697c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59a1cc6bdabf5ed148b48808ad1a418d87f5e6bf
refs/heads/master: 3120ec541eafc6ed19bacb395adf08c5872143bf
9 changes: 2 additions & 7 deletions trunk/fs/gfs2/lm_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,11 @@ void __init gfs2_init_lmh(void);
/*
* 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
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/gfs2/locking/dlm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static int __init init_lock_dlm(void)
{
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);
Expand All @@ -29,14 +29,14 @@ static int __init init_lock_dlm(void)

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;
}

Expand All @@ -52,7 +52,7 @@ static void __exit exit_lock_dlm(void)
{
gdlm_plock_exit();
gdlm_sysfs_exit();
gfs_unregister_lockproto(&gdlm_ops);
gfs2_unregister_lockproto(&gdlm_ops);
}

module_init(init_lock_dlm);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/gfs2/locking/nolock/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static int __init init_nolock(void)
{
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);
Expand All @@ -247,7 +247,7 @@ static int __init init_nolock(void)

static void __exit exit_nolock(void)
{
gfs_unregister_lockproto(&nolock_ops);
gfs2_unregister_lockproto(&nolock_ops);
}

module_init(init_nolock);
Expand Down

0 comments on commit b4d697c

Please sign in to comment.