Searched refs:msblk (Results 1 - 25 of 28) sorted by relevance

12

/linux-master/fs/squashfs/
H A Ddecompressor_single.c27 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 Dsuper.c183 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 Ddecompressor_multi_percpu.c27 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 Ddecompressor.h27 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 Ddecompressor_multi.c61 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 Dfile.c52 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 Dblock.c192 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 Dfragment.c38 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 Did.c35 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 Dxattr_id.c31 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 Ddecompressor.c89 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 Dsquashfs.h43 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 Dlz4_wrapper.c32 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 Dpage_actor.c105 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 Dnamei.c68 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 Dzstd_wrapper.c29 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 Dlzo_wrapper.c28 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 Dexport.c41 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 Dfile_direct.c27 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 Ddir.c42 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 Dxz_wrapper.c38 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 Dpage_actor.h31 struct squashfs_sb_info *msblk,
H A Dsymlink.c38 struct squashfs_sb_info *msblk = sb->s_fs_info; local
72 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0);
H A Dxattr.c31 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 Dcache.c334 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);

Completed in 219 milliseconds

12