Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef SQUASHFS_FS_I
0003 #define SQUASHFS_FS_I
0004 /*
0005  * Squashfs
0006  *
0007  * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
0008  * Phillip Lougher <phillip@squashfs.org.uk>
0009  *
0010  * squashfs_fs_i.h
0011  */
0012 
0013 struct squashfs_inode_info {
0014     u64     start;
0015     int     offset;
0016     u64     xattr;
0017     unsigned int    xattr_size;
0018     int     xattr_count;
0019     union {
0020         struct {
0021             u64     fragment_block;
0022             int     fragment_size;
0023             int     fragment_offset;
0024             u64     block_list_start;
0025         };
0026         struct {
0027             u64     dir_idx_start;
0028             int     dir_idx_offset;
0029             int     dir_idx_cnt;
0030             int     parent;
0031         };
0032     };
0033     struct inode    vfs_inode;
0034 };
0035 
0036 
0037 static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
0038 {
0039     return container_of(inode, struct squashfs_inode_info, vfs_inode);
0040 }
0041 #endif