diff options
author | Andrew Beekhof <abeekhof@suse.de> | 2006-12-04 08:04:53 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-12-07 21:13:01 -0500 |
commit | 296b75ed6a3b35f613961cefe4962ce1cf586d77 (patch) | |
tree | 6bfb05e59a1794f1809c0fffa7a5ded247dc620c /fs/ocfs2/cluster/nodemanager.h | |
parent | 8903901dbf46bbdf1f70ffe7bc09cb6b97e6728a (diff) |
[patch 1/3] OCFS2 - Expose struct o2nm_cluster
Subsequent patches (namely userspace heartbeat and configurable timeouts)
require access to the o2nm_cluster struct. This patch does the necessary
shuffling.
Signed-off-by: Andrew Beekhof <abeekhof@suse.de>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/nodemanager.h')
-rw-r--r-- | fs/ocfs2/cluster/nodemanager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/nodemanager.h b/fs/ocfs2/cluster/nodemanager.h index fce8033c310f..b571cda9fbb7 100644 --- a/fs/ocfs2/cluster/nodemanager.h +++ b/fs/ocfs2/cluster/nodemanager.h | |||
@@ -53,6 +53,20 @@ struct o2nm_node { | |||
53 | unsigned long nd_set_attributes; | 53 | unsigned long nd_set_attributes; |
54 | }; | 54 | }; |
55 | 55 | ||
56 | struct o2nm_cluster { | ||
57 | struct config_group cl_group; | ||
58 | unsigned cl_has_local:1; | ||
59 | u8 cl_local_node; | ||
60 | rwlock_t cl_nodes_lock; | ||
61 | struct o2nm_node *cl_nodes[O2NM_MAX_NODES]; | ||
62 | struct rb_root cl_node_ip_tree; | ||
63 | |||
64 | /* this bitmap is part of a hack for disk bitmap.. will go eventually. - zab */ | ||
65 | unsigned long cl_nodes_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; | ||
66 | }; | ||
67 | |||
68 | extern struct o2nm_cluster *o2nm_single_cluster; | ||
69 | |||
56 | u8 o2nm_this_node(void); | 70 | u8 o2nm_this_node(void); |
57 | 71 | ||
58 | int o2nm_configured_node_map(unsigned long *map, unsigned bytes); | 72 | int o2nm_configured_node_map(unsigned long *map, unsigned bytes); |