6 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
7 * Phillip Lougher <phillip@squashfs.org.uk>
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.
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.
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.
26 #include "squashfs_fs.h"
28 struct squashfs_cache
{
38 wait_queue_head_t wait_queue
;
39 struct squashfs_cache_entry
*entry
;
42 struct squashfs_cache_entry
{
50 wait_queue_head_t wait_queue
;
51 struct squashfs_cache
*cache
;
55 struct squashfs_sb_info
{
56 const struct squashfs_decompressor
*decompressor
;
59 struct squashfs_cache
*block_cache
;
60 struct squashfs_cache
*fragment_cache
;
61 struct squashfs_cache
*read_page
;
64 __le64
*fragment_index
;
65 __le64
*xattr_id_table
;
66 struct mutex read_data_mutex
;
67 struct mutex meta_index_mutex
;
68 struct meta_index
*meta_index
;
70 __le64
*inode_lookup_table
;
74 unsigned int block_size
;
75 unsigned short block_log
;