blob: 8312651135b920397d683d9615b3c17a7e05f4ec [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Masahiro Yamadafa60ce22021-05-06 18:06:44 -07002/*
Mark Fashehccd979b2005-12-15 14:31:24 -08003 * super.h
4 *
5 * Function prototypes
6 *
7 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
Mark Fashehccd979b2005-12-15 14:31:24 -08008 */
9
10#ifndef OCFS2_SUPER_H
11#define OCFS2_SUPER_H
12
Joe Perchesb9075fa2011-10-31 17:11:33 -070013__printf(3, 4)
Goldwyn Rodrigues7d0fb912015-09-04 15:44:11 -070014int __ocfs2_error(struct super_block *sb, const char *function,
Joe Perchesb9075fa2011-10-31 17:11:33 -070015 const char *fmt, ...);
Mark Fasheha74e1f02006-03-03 10:18:58 -080016
Joe Perches7ecef142015-09-04 15:44:51 -070017#define ocfs2_error(sb, fmt, ...) \
18 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
Mark Fashehccd979b2005-12-15 14:31:24 -080019
Joe Perchesb9075fa2011-10-31 17:11:33 -070020__printf(3, 4)
21void __ocfs2_abort(struct super_block *sb, const char *function,
22 const char *fmt, ...);
Mark Fasheha74e1f02006-03-03 10:18:58 -080023
Joe Perches7ecef142015-09-04 15:44:51 -070024#define ocfs2_abort(sb, fmt, ...) \
25 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
Mark Fashehccd979b2005-12-15 14:31:24 -080026
Joel Beckere4b963f2009-09-02 17:17:36 -070027/*
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
Mark Fashehccd979b2005-12-15 14:31:24 -080034#endif /* OCFS2_SUPER_H */