diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-01-29 20:37:32 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 11:56:03 -0400 |
commit | 24ef1815e5e13e50196eb1ab8ddc0d783443bdf8 (patch) | |
tree | 4c44e87b1a80d4745416c9973258c40db8433829 /fs/ocfs2/super.c | |
parent | 386a2ef8576e966076c293f6496b9e3d7e3d9035 (diff) |
ocfs2: Separate out dlm lock functions.
This is the first in a series of patches to isolate ocfs2 from the
underlying cluster stack. Here we wrap the dlm locking functions with
ocfs2-specific calls. Because ocfs2 always uses the same dlm lock status
callbacks, we can eliminate the callbacks from the filesystem visible
functions.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 1a4c7c7850f2..c8675464e299 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -933,6 +933,8 @@ static int __init ocfs2_init(void) | |||
933 | 933 | ||
934 | ocfs2_print_version(); | 934 | ocfs2_print_version(); |
935 | 935 | ||
936 | dlmglue_init_stack(); | ||
937 | |||
936 | status = init_ocfs2_uptodate_cache(); | 938 | status = init_ocfs2_uptodate_cache(); |
937 | if (status < 0) { | 939 | if (status < 0) { |
938 | mlog_errno(status); | 940 | mlog_errno(status); |
@@ -988,6 +990,8 @@ static void __exit ocfs2_exit(void) | |||
988 | 990 | ||
989 | exit_ocfs2_uptodate_cache(); | 991 | exit_ocfs2_uptodate_cache(); |
990 | 992 | ||
993 | dlmglue_exit_stack(); | ||
994 | |||
991 | mlog_exit_void(); | 995 | mlog_exit_void(); |
992 | } | 996 | } |
993 | 997 | ||