xref: /kernel/linux/linux-5.10/fs/ocfs2/super.h (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/* -*- mode: c; c-basic-offset: 8; -*-
38c2ecf20Sopenharmony_ci * vim: noexpandtab sw=8 ts=8 sts=0:
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * super.h
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Function prototypes
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef OCFS2_SUPER_H
138c2ecf20Sopenharmony_ci#define OCFS2_SUPER_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci__printf(3, 4)
168c2ecf20Sopenharmony_ciint __ocfs2_error(struct super_block *sb, const char *function,
178c2ecf20Sopenharmony_ci		   const char *fmt, ...);
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define ocfs2_error(sb, fmt, ...)					\
208c2ecf20Sopenharmony_ci	__ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci__printf(3, 4)
238c2ecf20Sopenharmony_civoid __ocfs2_abort(struct super_block *sb, const char *function,
248c2ecf20Sopenharmony_ci		   const char *fmt, ...);
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define ocfs2_abort(sb, fmt, ...)					\
278c2ecf20Sopenharmony_ci	__ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci/*
308c2ecf20Sopenharmony_ci * Void signal blockers, because in-kernel sigprocmask() only fails
318c2ecf20Sopenharmony_ci * when SIG_* is wrong.
328c2ecf20Sopenharmony_ci */
338c2ecf20Sopenharmony_civoid ocfs2_block_signals(sigset_t *oldset);
348c2ecf20Sopenharmony_civoid ocfs2_unblock_signals(sigset_t *oldset);
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#endif /* OCFS2_SUPER_H */
37