diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-01-29 19:59:56 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 11:56:04 -0400 |
commit | 6953b4c008628b945bfe0cee97f6e78a98773859 (patch) | |
tree | de00a19f59466d9e83b00112696afa5b02abbd9c /fs/ocfs2/stackglue.h | |
parent | 19fdb624dc8ccb663f6e48b3a3a3fa4e4e567fc1 (diff) |
ocfs2: Move o2hb functionality into the stack glue.
The last bit of classic stack used directly in ocfs2 code is o2hb.
Specifically, the check for heartbeat during mount and the call to
ocfs2_hb_ctl during unmount.
We create an extra API, ocfs2_cluster_hangup(), to encapsulate the call
to ocfs2_hb_ctl. Other stacks will just leave hangup() empty.
The check for heartbeat is moved into ocfs2_cluster_connect(). It will
be matched by a similar check for other stacks.
With this change, only stackglue.c includes cluster/ headers.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/stackglue.h')
-rw-r--r-- | fs/ocfs2/stackglue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h index ccb03991b514..22af77b9a690 100644 --- a/fs/ocfs2/stackglue.h +++ b/fs/ocfs2/stackglue.h | |||
@@ -74,6 +74,7 @@ int ocfs2_cluster_connect(const char *group, | |||
74 | void *recovery_data, | 74 | void *recovery_data, |
75 | struct ocfs2_cluster_connection **conn); | 75 | struct ocfs2_cluster_connection **conn); |
76 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn); | 76 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn); |
77 | void ocfs2_cluster_hangup(const char *group, int grouplen); | ||
77 | int ocfs2_cluster_this_node(unsigned int *node); | 78 | int ocfs2_cluster_this_node(unsigned int *node); |
78 | 79 | ||
79 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, | 80 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, |