summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/tcp.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2011-07-24 10:32:54 -0700
committerSunil Mushran <sunil.mushran@oracle.com>2011-07-24 10:32:54 -0700
commit3ba169ccec1c5ad0f678e04fd29b990197fdfe79 (patch)
tree44aa0576afaf198a717e12b0450f45619e2c5cc4 /fs/ocfs2/cluster/tcp.h
parentbb570a5d9e74f71d32751823052db4a97d6a5e7c (diff)
downloadlinux-3ba169ccec1c5ad0f678e04fd29b990197fdfe79.tar.gz
linux-3ba169ccec1c5ad0f678e04fd29b990197fdfe79.tar.bz2
linux-3ba169ccec1c5ad0f678e04fd29b990197fdfe79.zip
ocfs2/cluster: Add new function o2net_fill_node_map()
Patch adds function o2net_fill_node_map() to return the bitmap of nodes that it is connected to. This bitmap is also accessible by the user via the debugfs file, /sys/kernel/debug/o2net/connected_nodes. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/tcp.h')
-rw-r--r--fs/ocfs2/cluster/tcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/tcp.h b/fs/ocfs2/cluster/tcp.h
index fd6179eb26d4..5bada2a69b50 100644
--- a/fs/ocfs2/cluster/tcp.h
+++ b/fs/ocfs2/cluster/tcp.h
@@ -106,6 +106,8 @@ int o2net_register_handler(u32 msg_type, u32 key, u32 max_len,
struct list_head *unreg_list);
void o2net_unregister_handler_list(struct list_head *list);
+void o2net_fill_node_map(unsigned long *map, unsigned bytes);
+
struct o2nm_node;
int o2net_register_hb_callbacks(void);
void o2net_unregister_hb_callbacks(void);