blob: 76facaf63336a35fbf3ec20a40c5d85027c43372 [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mark Fashehccd979b2005-12-15 14:31:24 -08002/* -*- 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.
Mark Fashehccd979b2005-12-15 14:31:24 -080010 */
11
12#ifndef OCFS2_SUPER_H
13#define OCFS2_SUPER_H
14
Joe Perchesb9075fa2011-10-31 17:11:33 -070015__printf(3, 4)
Goldwyn Rodrigues7d0fb912015-09-04 15:44:11 -070016int __ocfs2_error(struct super_block *sb, const char *function,
Joe Perchesb9075fa2011-10-31 17:11:33 -070017 const char *fmt, ...);
Mark Fasheha74e1f02006-03-03 10:18:58 -080018
Joe Perches7ecef142015-09-04 15:44:51 -070019#define ocfs2_error(sb, fmt, ...) \
20 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
Mark Fashehccd979b2005-12-15 14:31:24 -080021
Joe Perchesb9075fa2011-10-31 17:11:33 -070022__printf(3, 4)
23void __ocfs2_abort(struct super_block *sb, const char *function,
24 const char *fmt, ...);
Mark Fasheha74e1f02006-03-03 10:18:58 -080025
Joe Perches7ecef142015-09-04 15:44:51 -070026#define ocfs2_abort(sb, fmt, ...) \
27 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
Mark Fashehccd979b2005-12-15 14:31:24 -080028
Joel Beckere4b963f2009-09-02 17:17:36 -070029/*
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
Mark Fashehccd979b2005-12-15 14:31:24 -080036#endif /* OCFS2_SUPER_H */