Thomas Gleixner | 328970d | 2019-05-24 12:04:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Masahiro Yamada | fa60ce2 | 2021-05-06 18:06:44 -0700 | [diff] [blame] | 2 | /* |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 3 | * heartbeat.h |
| 4 | * |
| 5 | * Function prototypes |
| 6 | * |
| 7 | * Copyright (C) 2002, 2004 Oracle. All rights reserved. |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef OCFS2_HEARTBEAT_H |
| 11 | #define OCFS2_HEARTBEAT_H |
| 12 | |
| 13 | void ocfs2_init_node_maps(struct ocfs2_super *osb); |
| 14 | |
Joel Becker | 4670c46 | 2008-02-01 14:39:35 -0800 | [diff] [blame] | 15 | void ocfs2_do_node_down(int node_num, void *data); |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 16 | |
| 17 | /* node map functions - used to keep track of mounted and in-recovery |
| 18 | * nodes. */ |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 19 | void ocfs2_node_map_set_bit(struct ocfs2_super *osb, |
| 20 | struct ocfs2_node_map *map, |
| 21 | int bit); |
| 22 | void ocfs2_node_map_clear_bit(struct ocfs2_super *osb, |
| 23 | struct ocfs2_node_map *map, |
| 24 | int bit); |
| 25 | int ocfs2_node_map_test_bit(struct ocfs2_super *osb, |
| 26 | struct ocfs2_node_map *map, |
| 27 | int bit); |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 28 | |
| 29 | #endif /* OCFS2_HEARTBEAT_H */ |