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) #ifndef SQUASHFS_FS_SB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define SQUASHFS_FS_SB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Squashfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Phillip Lougher <phillip@squashfs.org.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * squashfs_fs_sb.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include "squashfs_fs.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct squashfs_cache {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	char			*name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	int			entries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	int			curr_blk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	int			next_blk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	int			num_waiters;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	int			unused;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	int			block_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	int			pages;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	spinlock_t		lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	wait_queue_head_t	wait_queue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	struct squashfs_cache_entry *entry;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) struct squashfs_cache_entry {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	u64			block;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	int			length;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	int			refcount;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	u64			next_index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	int			pending;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	int			error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	int			num_waiters;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	wait_queue_head_t	wait_queue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	struct squashfs_cache	*cache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	void			**data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	struct squashfs_page_actor	*actor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) struct squashfs_sb_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	const struct squashfs_decompressor	*decompressor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	int					devblksize;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	int					devblksize_log2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	struct squashfs_cache			*block_cache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	struct squashfs_cache			*fragment_cache;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	struct squashfs_cache			*read_page;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	int					next_meta_index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	__le64					*id_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	__le64					*fragment_index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 	__le64					*xattr_id_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	struct mutex				meta_index_mutex;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	struct meta_index			*meta_index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	struct squashfs_stream			*stream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	__le64					*inode_lookup_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	u64					inode_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	u64					directory_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 	u64					xattr_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 	unsigned int				block_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	unsigned short				block_log;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 	long long				bytes_used;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 	unsigned int				inodes;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	unsigned int				fragments;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 	int					xattr_ids;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 	unsigned int				ids;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #endif