1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
8 * Phillip Lougher <phillip@squashfs.org.uk>
13 #include "squashfs_fs.h"
15 struct squashfs_cache {
25 wait_queue_head_t wait_queue;
26 struct squashfs_cache_entry *entry;
29 struct squashfs_cache_entry {
37 wait_queue_head_t wait_queue;
38 struct squashfs_cache *cache;
40 struct squashfs_page_actor *actor;
43 struct squashfs_sb_info {
44 const struct squashfs_decompressor *decompressor;
47 struct squashfs_cache *block_cache;
48 struct squashfs_cache *fragment_cache;
49 struct squashfs_cache *read_page;
50 struct address_space *cache_mapping;
53 __le64 *fragment_index;
54 __le64 *xattr_id_table;
55 struct mutex meta_index_mutex;
56 struct meta_index *meta_index;
58 __le64 *inode_lookup_table;
62 unsigned int block_size;
63 unsigned short block_log;
66 unsigned int fragments;
67 unsigned int xattr_ids;
70 const struct squashfs_decompressor_thread_ops *thread_ops;