^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_I
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define SQUASHFS_FS_I
^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_i.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) struct squashfs_inode_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) u64 start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) u64 xattr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) unsigned int xattr_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int xattr_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) union {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) u64 fragment_block;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int fragment_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int fragment_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) u64 block_list_start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) u64 dir_idx_start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) int dir_idx_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int dir_idx_cnt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int parent;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) struct inode vfs_inode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) return container_of(inode, struct squashfs_inode_info, vfs_inode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif