diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2014-03-29 16:01:53 +0100 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-02-23 14:28:42 +0100 |
commit | edb39c9deda87da5aad9c090e2e8eaf8470c852c (patch) | |
tree | 22b789f9e6bdcfd892d9f6a7e757e1fe58579795 /drivers/md/md-cluster.h | |
parent | DLM lock and unlock functions (diff) | |
download | linux-edb39c9deda87da5aad9c090e2e8eaf8470c852c.tar.xz linux-edb39c9deda87da5aad9c090e2e8eaf8470c852c.zip |
Introduce md_cluster_operations to handle cluster functions
This allows dynamic registering of cluster hooks.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/md-cluster.h')
-rw-r--r-- | drivers/md/md-cluster.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/md/md-cluster.h b/drivers/md/md-cluster.h new file mode 100644 index 000000000000..aa9f07bd6b96 --- /dev/null +++ b/drivers/md/md-cluster.h @@ -0,0 +1,15 @@ + + +#ifndef _MD_CLUSTER_H +#define _MD_CLUSTER_H + +#include "md.h" + +struct mddev; + +struct md_cluster_operations { + int (*join)(struct mddev *mddev); + int (*leave)(struct mddev *mddev); +}; + +#endif /* _MD_CLUSTER_H */ |