ocfs2_dlmfs: Enable the use of user cluster stacks.
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / stackglue.h
index b1981ba4c91f6b1db8c6400ee90e674c7d9071c2..8ce7398ae1d2dbac2041a7389ea41e4e8cd2acd3 100644 (file)
@@ -246,6 +246,17 @@ int ocfs2_cluster_connect(const char *stack_name,
                                                   void *recovery_data),
                          void *recovery_data,
                          struct ocfs2_cluster_connection **conn);
+/*
+ * Used by callers that don't store their stack name.  They must ensure
+ * all nodes have the same stack.
+ */
+int ocfs2_cluster_connect_agnostic(const char *group,
+                                  int grouplen,
+                                  struct ocfs2_locking_protocol *lproto,
+                                  void (*recovery_handler)(int node_num,
+                                                           void *recovery_data),
+                                  void *recovery_data,
+                                  struct ocfs2_cluster_connection **conn);
 int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn,
                             int hangup_pending);
 void ocfs2_cluster_hangup(const char *group, int grouplen);