Loading...
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:
4 *
5 * super.h
6 *
7 * Function prototypes
8 *
9 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
10 */
11
12#ifndef OCFS2_SUPER_H
13#define OCFS2_SUPER_H
14
15__printf(3, 4)
16int __ocfs2_error(struct super_block *sb, const char *function,
17 const char *fmt, ...);
18
19#define ocfs2_error(sb, fmt, ...) \
20 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
21
22__printf(3, 4)
23void __ocfs2_abort(struct super_block *sb, const char *function,
24 const char *fmt, ...);
25
26#define ocfs2_abort(sb, fmt, ...) \
27 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
28
29/*
30 * Void signal blockers, because in-kernel sigprocmask() only fails
31 * when SIG_* is wrong.
32 */
33void ocfs2_block_signals(sigset_t *oldset);
34void ocfs2_unblock_signals(sigset_t *oldset);
35
36#endif /* OCFS2_SUPER_H */
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * super.h
4 *
5 * Function prototypes
6 *
7 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
8 */
9
10#ifndef OCFS2_SUPER_H
11#define OCFS2_SUPER_H
12
13__printf(3, 4)
14int __ocfs2_error(struct super_block *sb, const char *function,
15 const char *fmt, ...);
16
17#define ocfs2_error(sb, fmt, ...) \
18 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
19
20__printf(3, 4)
21void __ocfs2_abort(struct super_block *sb, const char *function,
22 const char *fmt, ...);
23
24#define ocfs2_abort(sb, fmt, ...) \
25 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
26
27/*
28 * Void signal blockers, because in-kernel sigprocmask() only fails
29 * when SIG_* is wrong.
30 */
31void ocfs2_block_signals(sigset_t *oldset);
32void ocfs2_unblock_signals(sigset_t *oldset);
33
34#endif /* OCFS2_SUPER_H */