1/* Modified by Broadcom Corp. Portions Copyright (c) Broadcom Corp, 2012. */ 2#ifndef SQUASHFS_FS_I 3#define SQUASHFS_FS_I 4/* 5 * Squashfs 6 * 7 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 8 * Phillip Lougher <phillip@lougher.demon.co.uk> 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License 12 * as published by the Free Software Foundation; either version 2, 13 * or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23 * 24 * squashfs_fs_i.h 25 */ 26 27struct squashfs_inode_info { 28 u64 start; 29 int offset; 30 u64 xattr; 31 unsigned int xattr_size; 32 int xattr_count; 33 union { 34 struct { 35 u64 fragment_block; 36 int fragment_size; 37 int fragment_offset; 38 u64 block_list_start; 39 }; 40 struct { 41 u64 dir_idx_start; 42 int dir_idx_offset; 43 int dir_idx_cnt; 44 int parent; 45 }; 46 }; 47 struct inode vfs_inode; 48}; 49 50 51static inline struct squashfs_inode_info *squashfs_i(struct inode *inode) 52{ 53 return list_entry(inode, struct squashfs_inode_info, vfs_inode); 54} 55#endif 56