Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * All Rights Reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #ifndef	__XFS_ERROR_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define	__XFS_ERROR_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) struct xfs_mount;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 			const char *filename, int linenum,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 			xfs_failaddr_t failaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern void xfs_corruption_error(const char *tag, int level,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 			struct xfs_mount *mp, const void *buf, size_t bufsize,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 			const char *filename, int linenum,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 			xfs_failaddr_t failaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void xfs_buf_corruption_error(struct xfs_buf *bp, xfs_failaddr_t fa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern void xfs_buf_verifier_error(struct xfs_buf *bp, int error,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 			const char *name, const void *buf, size_t bufsz,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 			xfs_failaddr_t failaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern void xfs_verifier_error(struct xfs_buf *bp, int error,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 			xfs_failaddr_t failaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern void xfs_inode_verifier_error(struct xfs_inode *ip, int error,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 			const char *name, const void *buf, size_t bufsz,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 			xfs_failaddr_t failaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define	XFS_ERROR_REPORT(e, lvl, mp)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	xfs_error_report(e, lvl, mp, __FILE__, __LINE__, __return_address)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define	XFS_CORRUPTION_ERROR(e, lvl, mp, buf, bufsize)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	xfs_corruption_error(e, lvl, mp, buf, bufsize, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 			     __FILE__, __LINE__, __return_address)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define XFS_ERRLEVEL_OFF	0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define XFS_ERRLEVEL_LOW	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define XFS_ERRLEVEL_HIGH	5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /* Dump 128 bytes of any corrupt buffer */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define XFS_CORRUPTION_DUMP_LEN		(128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #ifdef DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern int xfs_errortag_init(struct xfs_mount *mp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) extern void xfs_errortag_del(struct xfs_mount *mp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) extern bool xfs_errortag_test(struct xfs_mount *mp, const char *expression,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		const char *file, int line, unsigned int error_tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define XFS_TEST_ERROR(expr, mp, tag)		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	((expr) || xfs_errortag_test((mp), #expr, __FILE__, __LINE__, (tag)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) extern int xfs_errortag_get(struct xfs_mount *mp, unsigned int error_tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) extern int xfs_errortag_set(struct xfs_mount *mp, unsigned int error_tag,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 		unsigned int tag_value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) extern int xfs_errortag_clearall(struct xfs_mount *mp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define xfs_errortag_init(mp)			(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define xfs_errortag_del(mp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define XFS_TEST_ERROR(expr, mp, tag)		(expr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define xfs_errortag_set(mp, tag, val)		(ENOSYS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define xfs_errortag_add(mp, tag)		(ENOSYS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define xfs_errortag_clearall(mp)		(ENOSYS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #endif /* DEBUG */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)  * XFS panic tags -- allow a call to xfs_alert_tag() be turned into
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)  *			a panic by setting xfs_panic_mask in a sysctl.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define		XFS_NO_PTAG			0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define		XFS_PTAG_IFLUSH			0x00000001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define		XFS_PTAG_LOGRES			0x00000002
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define		XFS_PTAG_AILDELETE		0x00000004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define		XFS_PTAG_ERROR_REPORT		0x00000008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define		XFS_PTAG_SHUTDOWN_CORRUPT	0x00000010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define		XFS_PTAG_SHUTDOWN_IOERROR	0x00000020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define		XFS_PTAG_SHUTDOWN_LOGERROR	0x00000040
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define		XFS_PTAG_FSBLOCK_ZERO		0x00000080
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define		XFS_PTAG_VERIFIER_ERROR		0x00000100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #endif	/* __XFS_ERROR_H__ */