Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * super.h
0004  *
0005  * Function prototypes
0006  *
0007  * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
0008  */
0009 
0010 #ifndef OCFS2_SUPER_H
0011 #define OCFS2_SUPER_H
0012 
0013 __printf(3, 4)
0014 int __ocfs2_error(struct super_block *sb, const char *function,
0015            const char *fmt, ...);
0016 
0017 #define ocfs2_error(sb, fmt, ...)                   \
0018     __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
0019 
0020 __printf(3, 4)
0021 void __ocfs2_abort(struct super_block *sb, const char *function,
0022            const char *fmt, ...);
0023 
0024 #define ocfs2_abort(sb, fmt, ...)                   \
0025     __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
0026 
0027 /*
0028  * Void signal blockers, because in-kernel sigprocmask() only fails
0029  * when SIG_* is wrong.
0030  */
0031 void ocfs2_block_signals(sigset_t *oldset);
0032 void ocfs2_unblock_signals(sigset_t *oldset);
0033 
0034 #endif /* OCFS2_SUPER_H */