blob: f1f8b1802fe4d82f481503778ba7bfc263db101d [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Masahiro Yamadafa60ce22021-05-06 18:06:44 -07002/*
Mark Fashehccd979b2005-12-15 14:31:24 -08003 * heartbeat.h
4 *
5 * Function prototypes
6 *
7 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
Mark Fashehccd979b2005-12-15 14:31:24 -08008 */
9
10#ifndef OCFS2_HEARTBEAT_H
11#define OCFS2_HEARTBEAT_H
12
13void ocfs2_init_node_maps(struct ocfs2_super *osb);
14
Joel Becker4670c462008-02-01 14:39:35 -080015void ocfs2_do_node_down(int node_num, void *data);
Mark Fashehccd979b2005-12-15 14:31:24 -080016
17/* node map functions - used to keep track of mounted and in-recovery
18 * nodes. */
Mark Fashehccd979b2005-12-15 14:31:24 -080019void ocfs2_node_map_set_bit(struct ocfs2_super *osb,
20 struct ocfs2_node_map *map,
21 int bit);
22void ocfs2_node_map_clear_bit(struct ocfs2_super *osb,
23 struct ocfs2_node_map *map,
24 int bit);
25int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
26 struct ocfs2_node_map *map,
27 int bit);
Mark Fashehccd979b2005-12-15 14:31:24 -080028
29#endif /* OCFS2_HEARTBEAT_H */