summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ocfs2/stackglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ocfs2/stackglue.c')
-rw-r--r--kernel/fs/ocfs2/stackglue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fs/ocfs2/stackglue.c b/kernel/fs/ocfs2/stackglue.c
index 5d965e83b..783bcdce5 100644
--- a/kernel/fs/ocfs2/stackglue.c
+++ b/kernel/fs/ocfs2/stackglue.c
@@ -48,6 +48,12 @@ static char ocfs2_hb_ctl_path[OCFS2_MAX_HB_CTL_PATH] = "/sbin/ocfs2_hb_ctl";
*/
static struct ocfs2_stack_plugin *active_stack;
+inline int ocfs2_is_o2cb_active(void)
+{
+ return !strcmp(active_stack->sp_name, OCFS2_STACK_PLUGIN_O2CB);
+}
+EXPORT_SYMBOL_GPL(ocfs2_is_o2cb_active);
+
static struct ocfs2_stack_plugin *ocfs2_stack_lookup(const char *name)
{
struct ocfs2_stack_plugin *p;