diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-09 18:18:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-09 18:18:49 -0500 |
commit | 31aeb6c815549948571eec988ad9728c27d7a68d (patch) | |
tree | e155438be253924ebb1b792182e406947369b3eb /fs/squashfs/squashfs_fs_sb.h | |
parent | c40f6f8bbc4cbd2902671aacd587400ddca62627 (diff) | |
parent | fc55584175589b70f4c30cb594f09f4bd6ad5d40 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus:
MAINTAINERS: squashfs entry
Squashfs: documentation
Squashfs: initrd support
Squashfs: Kconfig entry
Squashfs: Makefiles
Squashfs: header files
Squashfs: block operations
Squashfs: cache operations
Squashfs: uid/gid lookup operations
Squashfs: fragment block operations
Squashfs: export operations
Squashfs: super block operations
Squashfs: symlink operations
Squashfs: regular file operations
Squashfs: directory readdir operations
Squashfs: directory lookup operations
Squashfs: inode operations
Diffstat (limited to 'fs/squashfs/squashfs_fs_sb.h')
-rw-r--r-- | fs/squashfs/squashfs_fs_sb.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs_fs_sb.h b/fs/squashfs/squashfs_fs_sb.h new file mode 100644 index 000000000000..c8c65614dd1c --- /dev/null +++ b/fs/squashfs/squashfs_fs_sb.h | |||
@@ -0,0 +1,76 @@ | |||
1 | #ifndef SQUASHFS_FS_SB | ||
2 | #define SQUASHFS_FS_SB | ||
3 | /* | ||
4 | * Squashfs | ||
5 | * | ||
6 | * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 | ||
7 | * Phillip Lougher <phillip@lougher.demon.co.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 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
22 | * | ||
23 | * squashfs_fs_sb.h | ||
24 | */ | ||
25 | |||
26 | #include "squashfs_fs.h" | ||
27 | |||
28 | struct squashfs_cache { | ||
29 | char *name; | ||
30 | int entries; | ||
31 | int next_blk; | ||
32 | int num_waiters; | ||
33 | int unused; | ||
34 | int block_size; | ||
35 | int pages; | ||
36 | spinlock_t lock; | ||
37 | wait_queue_head_t wait_queue; | ||
38 | struct squashfs_cache_entry *entry; | ||
39 | }; | ||
40 | |||
41 | struct squashfs_cache_entry { | ||
42 | u64 block; | ||
43 | int length; | ||
44 | int refcount; | ||
45 | u64 next_index; | ||
46 | int pending; | ||
47 | int error; | ||
48 | int num_waiters; | ||
49 | wait_queue_head_t wait_queue; | ||
50 | struct squashfs_cache *cache; | ||
51 | void **data; | ||
52 | }; | ||
53 | |||
54 | struct squashfs_sb_info { | ||
55 | int devblksize; | ||
56 | int devblksize_log2; | ||
57 | struct squashfs_cache *block_cache; | ||
58 | struct squashfs_cache *fragment_cache; | ||
59 | struct squashfs_cache *read_page; | ||
60 | int next_meta_index; | ||
61 | __le64 *id_table; | ||
62 | __le64 *fragment_index; | ||
63 | unsigned int *fragment_index_2; | ||
64 | struct mutex read_data_mutex; | ||
65 | struct mutex meta_index_mutex; | ||
66 | struct meta_index *meta_index; | ||
67 | z_stream stream; | ||
68 | __le64 *inode_lookup_table; | ||
69 | u64 inode_table; | ||
70 | u64 directory_table; | ||
71 | unsigned int block_size; | ||
72 | unsigned short block_log; | ||
73 | long long bytes_used; | ||
74 | unsigned int inodes; | ||
75 | }; | ||
76 | #endif | ||