/linux-master/fs/squashfs/ |
H A D | decompressor_single.c | 27 static void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, argument 37 stream->stream = msblk->decompressor->init(msblk, comp_opts); 52 static void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) argument 54 struct squashfs_stream *stream = msblk->stream; 57 msblk->decompressor->free(stream->stream); 62 static int squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio, argument 67 struct squashfs_stream *stream = msblk->stream; 70 res = msblk->decompressor->decompress(msblk, strea [all...] |
H A D | super.c | 183 struct squashfs_sb_info *msblk; local 194 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); 199 msblk = sb->s_fs_info; 200 msblk->thread_ops = opts->thread_ops; 202 msblk->panic_on_errors = (opts->errors == Opt_errors_panic); 204 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); 205 msblk->devblksize_log2 = ffz(~msblk->devblksize); 207 mutex_init(&msblk->meta_index_mutex); 210 * msblk 491 struct squashfs_sb_info *msblk = sb->s_fs_info; local 517 struct squashfs_sb_info *msblk = sb->s_fs_info; local 565 struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info; local [all...] |
H A D | decompressor_multi_percpu.c | 27 static void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, argument 40 stream->stream = msblk->decompressor->init(msblk, comp_opts); 55 msblk->decompressor->free(stream->stream); 61 static void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) argument 64 (struct squashfs_stream __percpu *) msblk->stream; 68 if (msblk->stream) { 71 msblk->decompressor->free(stream->stream); 77 static int squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio, argument 82 (struct squashfs_stream __percpu *) msblk [all...] |
H A D | decompressor.h | 27 static inline void *squashfs_comp_opts(struct squashfs_sb_info *msblk, argument 30 return msblk->decompressor->comp_opts ? 31 msblk->decompressor->comp_opts(msblk, buff, length) : NULL;
|
H A D | decompressor_multi.c | 61 static void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, argument 87 decomp_strm->stream = msblk->decompressor->init(msblk, 105 static void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) argument 107 struct squashfs_stream *stream = msblk->stream; 115 msblk->decompressor->free(decomp_strm->stream); 126 static struct decomp_stream *get_decomp_stream(struct squashfs_sb_info *msblk, argument 147 if (stream->avail_decomp >= msblk->max_thread_num) 155 decomp_strm->stream = msblk->decompressor->init(msblk, 182 squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio, int offset, int length, struct squashfs_page_actor *output) argument [all...] |
H A D | file.c | 52 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 55 mutex_lock(&msblk->meta_index_mutex); 59 if (msblk->meta_index == NULL) 63 if (msblk->meta_index[i].inode_number == inode->i_ino && 64 msblk->meta_index[i].offset >= offset && 65 msblk->meta_index[i].offset <= index && 66 msblk->meta_index[i].locked == 0) { 68 msblk->meta_index[i].offset); 69 meta = &msblk->meta_index[i]; 78 mutex_unlock(&msblk 90 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 150 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 231 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 387 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 452 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 507 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 539 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local [all...] |
H A D | block.c | 192 struct squashfs_sb_info *msblk = sb->s_fs_info; local 193 struct address_space *cache_mapping = msblk->cache_mapping; 194 const u64 read_start = round_down(index, msblk->devblksize); 195 const sector_t block = read_start >> msblk->devblksize_log2; 196 const u64 read_end = round_up(index + length, msblk->devblksize); 197 const sector_t block_end = read_end >> msblk->devblksize_log2; 199 int total_len = (block_end - block) << msblk->devblksize_log2; 208 bio->bi_iter.bi_sector = block * (msblk->devblksize >> SECTOR_SHIFT); 244 *block_offset = index & ((1 << msblk->devblksize_log2) - 1); 266 struct squashfs_sb_info *msblk local [all...] |
H A D | fragment.c | 38 struct squashfs_sb_info *msblk = sb->s_fs_info; local 43 if (fragment >= msblk->fragments) 48 start_block = le64_to_cpu(msblk->fragment_index[block]);
|
H A D | id.c | 35 struct squashfs_sb_info *msblk = sb->s_fs_info; local 42 if (index >= msblk->ids) 45 start_block = le64_to_cpu(msblk->id_table[block]);
|
H A D | xattr_id.c | 31 struct squashfs_sb_info *msblk = sb->s_fs_info; local 38 if (index >= msblk->xattr_ids) 41 start_block = le64_to_cpu(msblk->xattr_id_table[block]); 61 struct squashfs_sb_info *msblk = sb->s_fs_info; local 90 end = msblk->bytes_used;
|
H A D | decompressor.c | 89 struct squashfs_sb_info *msblk = sb->s_fs_info; local 119 comp_opts = squashfs_comp_opts(msblk, buffer, length); 130 struct squashfs_sb_info *msblk = sb->s_fs_info; local 136 stream = msblk->thread_ops->create(msblk, comp_opts);
|
H A D | squashfs.h | 43 void * (*create)(struct squashfs_sb_info *msblk, void *comp_opts); 44 void (*destroy)(struct squashfs_sb_info *msblk); 45 int (*decompress)(struct squashfs_sb_info *msblk, struct bio *bio,
|
H A D | lz4_wrapper.c | 32 static void *lz4_comp_opts(struct squashfs_sb_info *msblk, argument 52 static void *lz4_init(struct squashfs_sb_info *msblk, void *buff) argument 54 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); 91 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, argument
|
H A D | page_actor.c | 105 struct squashfs_page_actor *squashfs_page_actor_init_special(struct squashfs_sb_info *msblk, argument 113 if (msblk->decompressor->alloc_buffer) { 128 actor->next_index = page[0]->index & ~((1 << (msblk->block_log - PAGE_SHIFT)) - 1); 131 actor->alloc_buffer = msblk->decompressor->alloc_buffer;
|
H A D | namei.c | 68 struct squashfs_sb_info *msblk = sb->s_fs_info; local 109 msblk->directory_table; 132 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; local 135 u64 block = squashfs_i(dir)->start + msblk->directory_table; 227 squashfs_i(dir)->start + msblk->directory_table,
|
H A D | zstd_wrapper.c | 29 static void *zstd_init(struct squashfs_sb_info *msblk, void *buff) argument 36 msblk->block_size, SQUASHFS_METADATA_SIZE); 61 static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, argument
|
H A D | lzo_wrapper.c | 28 static void *lzo_init(struct squashfs_sb_info *msblk, void *buff) argument 30 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); 65 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, argument
|
H A D | export.c | 41 struct squashfs_sb_info *msblk = sb->s_fs_info; local 50 if (ino_num == 0 || (ino_num - 1) >= msblk->inodes) 53 start = le64_to_cpu(msblk->inode_lookup_table[blk]);
|
H A D | file_direct.c | 27 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 30 int mask = (1 << (msblk->block_log - PAGE_SHIFT)) - 1; 70 actor = squashfs_page_actor_init_special(msblk, page, pages, expected);
|
H A D | dir.c | 42 struct squashfs_sb_info *msblk = sb->s_fs_info; local 85 msblk->directory_table; 100 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; local 101 u64 block = squashfs_i(inode)->start + msblk->directory_table;
|
H A D | xz_wrapper.c | 38 static void *squashfs_xz_comp_opts(struct squashfs_sb_info *msblk, argument 69 opts->dict_size = max_t(int, msblk->block_size, 81 static void *squashfs_xz_init(struct squashfs_sb_info *msblk, void *buff) argument 119 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, argument
|
H A D | page_actor.h | 31 struct squashfs_sb_info *msblk,
|
H A D | symlink.c | 38 struct squashfs_sb_info *msblk = sb->s_fs_info; local 72 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0);
|
H A D | xattr.c | 31 struct squashfs_sb_info *msblk = sb->s_fs_info; local 33 + msblk->xattr_table; 40 if (msblk->xattr_id_table == NULL) 109 struct squashfs_sb_info *msblk = sb->s_fs_info; local 111 + msblk->xattr_table; 162 msblk->xattr_table;
|
H A D | cache.c | 334 struct squashfs_sb_info *msblk = sb->s_fs_info; local 344 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); 382 struct squashfs_sb_info *msblk = sb->s_fs_info; local 384 return squashfs_cache_get(sb, msblk->fragment_cache, start_block, 397 struct squashfs_sb_info *msblk = sb->s_fs_info; local 399 return squashfs_cache_get(sb, msblk->read_page, start_block, length);
|