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-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *   Copyright (C) International Business Machines Corp., 2000-2003
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #ifndef	_H_JFS_SUPERBLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #define _H_JFS_SUPERBLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #include <linux/uuid.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * make the magic number something a human could read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #define JFS_MAGIC	"JFS1"	/* Magic word */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #define JFS_VERSION	2	/* Version number: Version 2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #define LV_NAME_SIZE	11	/* MUST BE 11 for OS/2 boot sector */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  *	aggregate superblock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)  * The name superblock is too close to super_block, so the name has been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  * changed to jfs_superblock.  The utilities are still using the old name.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) struct jfs_superblock {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	char s_magic[4];	/* 4: magic number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	__le32 s_version;	/* 4: version number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	__le64 s_size;		/* 8: aggregate size in hardware/LVM blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 				 * VFS: number of blocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	__le32 s_bsize;		/* 4: aggregate block size in bytes;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 				 * VFS: fragment size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 	__le16 s_l2bsize;	/* 2: log2 of s_bsize */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	__le16 s_l2bfactor;	/* 2: log2(s_bsize/hardware block size) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	__le32 s_pbsize;	/* 4: hardware/LVM block size in bytes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	__le16 s_l2pbsize;	/* 2: log2 of s_pbsize */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	__le16 pad;		/* 2: padding necessary for alignment */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	__le32 s_agsize;	/* 4: allocation group size in aggr. blocks */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	__le32 s_flag;		/* 4: aggregate attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 				 *    see jfs_filsys.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	__le32 s_state;		/* 4: mount/unmount/recovery state:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 				 *    see jfs_filsys.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	__le32 s_compress;		/* 4: > 0 if data compression */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	pxd_t s_ait2;		/* 8: first extent of secondary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 				 *    aggregate inode table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	pxd_t s_aim2;		/* 8: first extent of secondary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 				 *    aggregate inode map
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	__le32 s_logdev;		/* 4: device address of log */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	__le32 s_logserial;	/* 4: log serial number at aggregate mount */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	pxd_t s_logpxd;		/* 8: inline log extent */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	pxd_t s_fsckpxd;	/* 8: inline fsck work space extent */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	struct timestruc_t s_time;	/* 8: time last updated */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	__le32 s_fsckloglen;	/* 4: Number of filesystem blocks reserved for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 				 *    the fsck service log.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 				 *    N.B. These blocks are divided among the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 				 *         versions kept.  This is not a per
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 				 *         version size.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 				 *    N.B. These blocks are included in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 				 *         length field of s_fsckpxd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	s8 s_fscklog;		/* 1: which fsck service log is most recent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 				 *    0 => no service log data yet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 				 *    1 => the first one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 				 *    2 => the 2nd one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	char s_fpack[11];	/* 11: file system volume name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 				 *     N.B. This must be 11 bytes to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 				 *          conform with the OS/2 BootSector
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 				 *          requirements
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 				 *          Only used when s_version is 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	/* extendfs() parameter under s_state & FM_EXTENDFS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	__le64 s_xsize;		/* 8: extendfs s_size */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	pxd_t s_xfsckpxd;	/* 8: extendfs fsckpxd */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	pxd_t s_xlogpxd;	/* 8: extendfs logpxd */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	uuid_t s_uuid;		/* 16: 128-bit uuid for volume */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	char s_label[16];	/* 16: volume label */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	uuid_t s_loguuid;	/* 16: 128-bit uuid for log device */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) extern int readSuper(struct super_block *, struct buffer_head **);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) extern int updateSuper(struct super_block *, uint);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) __printf(2, 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) extern void jfs_error(struct super_block *, const char *, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) extern int jfs_mount(struct super_block *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) extern int jfs_mount_rw(struct super_block *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) extern int jfs_umount(struct super_block *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) extern int jfs_umount_rw(struct super_block *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) extern int jfs_extendfs(struct super_block *, s64, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) extern struct task_struct *jfsIOthread;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) extern struct task_struct *jfsSyncThread;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #endif /*_H_JFS_SUPERBLOCK */