/src/barebox/fs/squashfs/squashfs_fs_i.h
Line | Count | Source |
1 | | #ifndef SQUASHFS_FS_I |
2 | | #define SQUASHFS_FS_I |
3 | | /* |
4 | | * Squashfs |
5 | | * |
6 | | * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
7 | | * Phillip Lougher <phillip@squashfs.org.uk> |
8 | | * |
9 | | * This program is free software; you can redistribute it and/or |
10 | | * modify it under the terms of the GNU General Public License |
11 | | * as published by the Free Software Foundation; either version 2, |
12 | | * or (at your option) any later version. |
13 | | * |
14 | | * This program is distributed in the hope that it will be useful, |
15 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | * GNU General Public License for more details. |
18 | | * |
19 | | * squashfs_fs_i.h |
20 | | */ |
21 | | |
22 | | #include <linux/kernel.h> |
23 | | |
24 | | struct squashfs_inode_info { |
25 | | u64 start; |
26 | | int offset; |
27 | | u64 xattr; |
28 | | unsigned int xattr_size; |
29 | | int xattr_count; |
30 | | union { |
31 | | struct { |
32 | | u64 fragment_block; |
33 | | int fragment_size; |
34 | | int fragment_offset; |
35 | | u64 block_list_start; |
36 | | }; |
37 | | struct { |
38 | | u64 dir_idx_start; |
39 | | int dir_idx_offset; |
40 | | int dir_idx_cnt; |
41 | | int parent; |
42 | | }; |
43 | | }; |
44 | | struct inode vfs_inode; |
45 | | }; |
46 | | |
47 | | |
48 | | static inline struct squashfs_inode_info *squashfs_i(struct inode *inode) |
49 | 0 | { |
50 | 0 | return container_of(inode, struct squashfs_inode_info, vfs_inode); |
51 | 0 | } Unexecuted instantiation: squashfs.c:squashfs_i Unexecuted instantiation: file.c:squashfs_i Unexecuted instantiation: file_cache.c:squashfs_i Unexecuted instantiation: inode.c:squashfs_i Unexecuted instantiation: namei.c:squashfs_i Unexecuted instantiation: super.c:squashfs_i Unexecuted instantiation: symlink.c:squashfs_i Unexecuted instantiation: dir.c:squashfs_i |
52 | | #endif |