super.h 835 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * super.h
  4. *
  5. * Function prototypes
  6. *
  7. * Copyright (C) 2002, 2004 Oracle. All rights reserved.
  8. */
  9. #ifndef OCFS2_SUPER_H
  10. #define OCFS2_SUPER_H
  11. __printf(3, 4)
  12. int __ocfs2_error(struct super_block *sb, const char *function,
  13. const char *fmt, ...);
  14. #define ocfs2_error(sb, fmt, ...) \
  15. __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
  16. __printf(3, 4)
  17. void __ocfs2_abort(struct super_block *sb, const char *function,
  18. const char *fmt, ...);
  19. #define ocfs2_abort(sb, fmt, ...) \
  20. __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
  21. /*
  22. * Void signal blockers, because in-kernel sigprocmask() only fails
  23. * when SIG_* is wrong.
  24. */
  25. void ocfs2_block_signals(sigset_t *oldset);
  26. void ocfs2_unblock_signals(sigset_t *oldset);
  27. #endif /* OCFS2_SUPER_H */