Thomas Gleixner | 328970d | 2019-05-24 12:04:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 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. |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef OCFS2_HEARTBEAT_H |
| 13 | #define OCFS2_HEARTBEAT_H |
| 14 | |
| 15 | void ocfs2_init_node_maps(struct ocfs2_super *osb); |
| 16 | |
Joel Becker | 4670c46 | 2008-02-01 14:39:35 -0800 | [diff] [blame] | 17 | void ocfs2_do_node_down(int node_num, void *data); |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 18 | |
| 19 | /* node map functions - used to keep track of mounted and in-recovery |
| 20 | * nodes. */ |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 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); |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 30 | |
| 31 | #endif /* OCFS2_HEARTBEAT_H */ |