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>
This commit is contained in:
@@ -933,6 +933,8 @@ static int __init ocfs2_init(void)
|
||||
|
||||
ocfs2_print_version();
|
||||
|
||||
dlmglue_init_stack();
|
||||
|
||||
status = init_ocfs2_uptodate_cache();
|
||||
if (status < 0) {
|
||||
mlog_errno(status);
|
||||
@@ -988,6 +990,8 @@ static void __exit ocfs2_exit(void)
|
||||
|
||||
exit_ocfs2_uptodate_cache();
|
||||
|
||||
dlmglue_exit_stack();
|
||||
|
||||
mlog_exit_void();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user