blob: 5fedb2d35dc078e0d557290a25a1971365c3148e [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mark Fashehccd979b2005-12-15 14:31:24 -08002/* -*- 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.
Mark Fashehccd979b2005-12-15 14:31:24 -080010 */
11
12#ifndef OCFS2_HEARTBEAT_H
13#define OCFS2_HEARTBEAT_H
14
15void ocfs2_init_node_maps(struct ocfs2_super *osb);
16
Joel Becker4670c462008-02-01 14:39:35 -080017void ocfs2_do_node_down(int node_num, void *data);
Mark Fashehccd979b2005-12-15 14:31:24 -080018
19/* node map functions - used to keep track of mounted and in-recovery
20 * nodes. */
Mark Fashehccd979b2005-12-15 14:31:24 -080021void ocfs2_node_map_set_bit(struct ocfs2_super *osb,
22 struct ocfs2_node_map *map,
23 int bit);
24void ocfs2_node_map_clear_bit(struct ocfs2_super *osb,
25 struct ocfs2_node_map *map,
26 int bit);
27int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
28 struct ocfs2_node_map *map,
29 int bit);
Mark Fashehccd979b2005-12-15 14:31:24 -080030
31#endif /* OCFS2_HEARTBEAT_H */