super.h 911 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef OCFS2_SUPER_H
  12. #define OCFS2_SUPER_H
  13. __printf(3, 4)
  14. int __ocfs2_error(struct super_block *sb, const char *function,
  15. const char *fmt, ...);
  16. #define ocfs2_error(sb, fmt, ...) \
  17. __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
  18. __printf(3, 4)
  19. void __ocfs2_abort(struct super_block *sb, const char *function,
  20. const char *fmt, ...);
  21. #define ocfs2_abort(sb, fmt, ...) \
  22. __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
  23. /*
  24. * Void signal blockers, because in-kernel sigprocmask() only fails
  25. * when SIG_* is wrong.
  26. */
  27. void ocfs2_block_signals(sigset_t *oldset);
  28. void ocfs2_unblock_signals(sigset_t *oldset);
  29. #endif /* OCFS2_SUPER_H */