xref: /openbmc/linux/fs/ocfs2/heartbeat.h (revision b8265621)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- mode: c; c-basic-offset: 8; -*-
3  * vim: noexpandtab sw=8 ts=8 sts=0:
4  *
5  * heartbeat.h
6  *
7  * Function prototypes
8  *
9  * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
10  */
11 
12 #ifndef OCFS2_HEARTBEAT_H
13 #define OCFS2_HEARTBEAT_H
14 
15 void ocfs2_init_node_maps(struct ocfs2_super *osb);
16 
17 void ocfs2_do_node_down(int node_num, void *data);
18 
19 /* node map functions - used to keep track of mounted and in-recovery
20  * nodes. */
21 void ocfs2_node_map_set_bit(struct ocfs2_super *osb,
22 			    struct ocfs2_node_map *map,
23 			    int bit);
24 void ocfs2_node_map_clear_bit(struct ocfs2_super *osb,
25 			      struct ocfs2_node_map *map,
26 			      int bit);
27 int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
28 			    struct ocfs2_node_map *map,
29 			    int bit);
30 
31 #endif /* OCFS2_HEARTBEAT_H */
32