]>
Commit | Line | Data |
---|---|---|
328970de | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
ccd979bd MF |
2 | /* -*- mode: c; c-basic-offset: 8; -*- |
3 | * vim: noexpandtab sw=8 ts=8 sts=0: | |
4 | * | |
5 | * super.h | |
6 | * | |
7 | * Function prototypes | |
8 | * | |
9 | * Copyright (C) 2002, 2004 Oracle. All rights reserved. | |
ccd979bd MF |
10 | */ |
11 | ||
12 | #ifndef OCFS2_SUPER_H | |
13 | #define OCFS2_SUPER_H | |
14 | ||
b9075fa9 | 15 | __printf(3, 4) |
7d0fb914 | 16 | int __ocfs2_error(struct super_block *sb, const char *function, |
b9075fa9 | 17 | const char *fmt, ...); |
a74e1f0e | 18 | |
7ecef14a JP |
19 | #define ocfs2_error(sb, fmt, ...) \ |
20 | __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) | |
ccd979bd | 21 | |
b9075fa9 JP |
22 | __printf(3, 4) |
23 | void __ocfs2_abort(struct super_block *sb, const char *function, | |
24 | const char *fmt, ...); | |
a74e1f0e | 25 | |
7ecef14a JP |
26 | #define ocfs2_abort(sb, fmt, ...) \ |
27 | __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) | |
ccd979bd | 28 | |
e4b963f1 JB |
29 | /* |
30 | * Void signal blockers, because in-kernel sigprocmask() only fails | |
31 | * when SIG_* is wrong. | |
32 | */ | |
33 | void ocfs2_block_signals(sigset_t *oldset); | |
34 | void ocfs2_unblock_signals(sigset_t *oldset); | |
35 | ||
ccd979bd | 36 | #endif /* OCFS2_SUPER_H */ |