Linux 5.8-rc4
[linux/fpc-iii.git] / fs / ocfs2 / super.h
blob76facaf63336a35fbf3ec20a40c5d85027c43372
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- mode: c; c-basic-offset: 8; -*-
3 * vim: noexpandtab sw=8 ts=8 sts=0:
5 * super.h
7 * Function prototypes
9 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
12 #ifndef OCFS2_SUPER_H
13 #define OCFS2_SUPER_H
15 __printf(3, 4)
16 int __ocfs2_error(struct super_block *sb, const char *function,
17 const char *fmt, ...);
19 #define ocfs2_error(sb, fmt, ...) \
20 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
22 __printf(3, 4)
23 void __ocfs2_abort(struct super_block *sb, const char *function,
24 const char *fmt, ...);
26 #define ocfs2_abort(sb, fmt, ...) \
27 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
30 * Void signal blockers, because in-kernel sigprocmask() only fails
31 * when SIG_* is wrong.
33 void ocfs2_block_signals(sigset_t *oldset);
34 void ocfs2_unblock_signals(sigset_t *oldset);
36 #endif /* OCFS2_SUPER_H */