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 | * super.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_SUPER_H |
| 11 | #define OCFS2_SUPER_H |
| 12 | |
Joe Perches | b9075fa | 2011-10-31 17:11:33 -0700 | [diff] [blame] | 13 | __printf(3, 4) |
Goldwyn Rodrigues | 7d0fb91 | 2015-09-04 15:44:11 -0700 | [diff] [blame] | 14 | int __ocfs2_error(struct super_block *sb, const char *function, |
Joe Perches | b9075fa | 2011-10-31 17:11:33 -0700 | [diff] [blame] | 15 | const char *fmt, ...); |
Mark Fasheh | a74e1f0 | 2006-03-03 10:18:58 -0800 | [diff] [blame] | 16 | |
Joe Perches | 7ecef14 | 2015-09-04 15:44:51 -0700 | [diff] [blame] | 17 | #define ocfs2_error(sb, fmt, ...) \ |
| 18 | __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 19 | |
Joe Perches | b9075fa | 2011-10-31 17:11:33 -0700 | [diff] [blame] | 20 | __printf(3, 4) |
| 21 | void __ocfs2_abort(struct super_block *sb, const char *function, |
| 22 | const char *fmt, ...); |
Mark Fasheh | a74e1f0 | 2006-03-03 10:18:58 -0800 | [diff] [blame] | 23 | |
Joe Perches | 7ecef14 | 2015-09-04 15:44:51 -0700 | [diff] [blame] | 24 | #define ocfs2_abort(sb, fmt, ...) \ |
| 25 | __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 26 | |
Joel Becker | e4b963f | 2009-09-02 17:17:36 -0700 | [diff] [blame] | 27 | /* |
| 28 | * Void signal blockers, because in-kernel sigprocmask() only fails |
| 29 | * when SIG_* is wrong. |
| 30 | */ |
| 31 | void ocfs2_block_signals(sigset_t *oldset); |
| 32 | void ocfs2_unblock_signals(sigset_t *oldset); |
| 33 | |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 34 | #endif /* OCFS2_SUPER_H */ |