/fs/squashfs/ |
D | super.c | 81 struct squashfs_sb_info *msblk; in squashfs_fill_super() local 92 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); in squashfs_fill_super() 97 msblk = sb->s_fs_info; in squashfs_fill_super() 99 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); in squashfs_fill_super() 100 msblk->devblksize_log2 = ffz(~msblk->devblksize); in squashfs_fill_super() 102 mutex_init(&msblk->meta_index_mutex); in squashfs_fill_super() 110 msblk->bytes_used = sizeof(*sblk); in squashfs_fill_super() 132 msblk->decompressor = supported_squashfs_filesystem( in squashfs_fill_super() 136 if (msblk->decompressor == NULL) in squashfs_fill_super() 141 msblk->bytes_used = le64_to_cpu(sblk->bytes_used); in squashfs_fill_super() [all …]
|
D | file.c | 65 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in locate_meta_index() local 68 mutex_lock(&msblk->meta_index_mutex); in locate_meta_index() 72 if (msblk->meta_index == NULL) in locate_meta_index() 76 if (msblk->meta_index[i].inode_number == inode->i_ino && in locate_meta_index() 77 msblk->meta_index[i].offset >= offset && in locate_meta_index() 78 msblk->meta_index[i].offset <= index && in locate_meta_index() 79 msblk->meta_index[i].locked == 0) { in locate_meta_index() 81 msblk->meta_index[i].offset); in locate_meta_index() 82 meta = &msblk->meta_index[i]; in locate_meta_index() 91 mutex_unlock(&msblk->meta_index_mutex); in locate_meta_index() [all …]
|
D | decompressor_multi_percpu.c | 28 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument 41 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create() 55 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create() 61 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument 64 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompressor_destroy() 68 if (msblk->stream) { in squashfs_decompressor_destroy() 71 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy() 77 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument 81 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompress() 83 int res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, in squashfs_decompress() [all …]
|
D | decompressor_single.c | 29 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument 39 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create() 54 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument 56 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy() 59 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy() 64 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument 68 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress() 71 res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, in squashfs_decompress() 77 msblk->decompressor->name); in squashfs_decompress()
|
D | decompressor_multi.c | 64 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument 90 decomp_strm->stream = msblk->decompressor->init(msblk, in squashfs_decompressor_create() 108 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument 110 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy() 118 msblk->decompressor->free(decomp_strm->stream); in squashfs_decompressor_destroy() 129 static struct decomp_stream *get_decomp_stream(struct squashfs_sb_info *msblk, in get_decomp_stream() argument 158 decomp_strm->stream = msblk->decompressor->init(msblk, in get_decomp_stream() 185 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument 189 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress() 190 struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream); in squashfs_decompress() [all …]
|
D | block.c | 107 struct squashfs_sb_info *msblk = req->sb->s_fs_info; in squashfs_process_blocks() local 124 if (req->offset != msblk->devblksize - 1) { in squashfs_process_blocks() 157 req->length, msblk->devblksize); in squashfs_process_blocks() 159 req->length = squashfs_decompress(msblk, bh, nr_buffers, in squashfs_process_blocks() 213 struct squashfs_sb_info *msblk = req->sb->s_fs_info; in bh_is_optional() local 215 start_idx = (idx * msblk->devblksize - req->offset) >> PAGE_SHIFT; in bh_is_optional() 216 end_idx = ((idx + 1) * msblk->devblksize - req->offset + 1) >> PAGE_SHIFT; in bh_is_optional() 262 struct squashfs_sb_info *msblk = req->sb->s_fs_info; in squashfs_bio_submit() local 264 u64 read_start = round_down(req->index, msblk->devblksize); in squashfs_bio_submit() 265 u64 read_end = round_up(req->index + req->length, msblk->devblksize); in squashfs_bio_submit() [all …]
|
D | decompressor.h | 38 static inline void *squashfs_comp_opts(struct squashfs_sb_info *msblk, in squashfs_comp_opts() argument 41 return msblk->decompressor->comp_opts ? in squashfs_comp_opts() 42 msblk->decompressor->comp_opts(msblk, buff, length) : NULL; in squashfs_comp_opts()
|
D | lz4_wrapper.c | 34 static void *lz4_comp_opts(struct squashfs_sb_info *msblk, in lz4_comp_opts() argument 54 static void *lz4_init(struct squashfs_sb_info *msblk, void *buff) in lz4_init() argument 56 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lz4_init() 93 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, in lz4_uncompress() argument 102 msblk->devblksize); in lz4_uncompress()
|
D | decompressor.c | 97 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_comp_opts() local 104 return squashfs_comp_opts(msblk, buffer, length); in get_comp_opts() 129 comp_opts = squashfs_comp_opts(msblk, buffer, length); in get_comp_opts() 142 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_decompressor_setup() local 148 stream = squashfs_decompressor_create(msblk, comp_opts); in squashfs_decompressor_setup()
|
D | lzo_wrapper.c | 41 static void *lzo_init(struct squashfs_sb_info *msblk, void *buff) in lzo_init() argument 43 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lzo_init() 78 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, in lzo_uncompress() argument 87 msblk->devblksize); in lzo_uncompress()
|
D | xz_wrapper.c | 51 static void *squashfs_xz_comp_opts(struct squashfs_sb_info *msblk, in squashfs_xz_comp_opts() argument 82 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts() 94 static void *squashfs_xz_init(struct squashfs_sb_info *msblk, void *buff) in squashfs_xz_init() argument 132 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, in squashfs_xz_uncompress() argument 150 avail = min(length, msblk->devblksize - offset); in squashfs_xz_uncompress()
|
D | namei.c | 81 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_name() local 122 msblk->directory_table; in get_dir_index_using_name() 145 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; in squashfs_lookup() local 148 u64 block = squashfs_i(dir)->start + msblk->directory_table; in squashfs_lookup() 240 squashfs_i(dir)->start + msblk->directory_table, in squashfs_lookup()
|
D | xattr.c | 44 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_listxattr() local 46 + msblk->xattr_table; in squashfs_listxattr() 53 if (msblk->xattr_id_table == NULL) in squashfs_listxattr() 122 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_get() local 124 + msblk->xattr_table; in squashfs_xattr_get() 175 msblk->xattr_table; in squashfs_xattr_get()
|
D | cache.c | 337 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_metadata() local 344 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata() 382 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_fragment() local 384 return squashfs_cache_get(sb, msblk->fragment_cache, start_block, in squashfs_get_fragment() 397 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_datablock() local 399 return squashfs_cache_get(sb, msblk->read_page, start_block, length); in squashfs_get_datablock()
|
D | dir.c | 55 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_offset() local 98 msblk->directory_table; in get_dir_index_using_offset() 113 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readdir() local 114 u64 block = squashfs_i(inode)->start + msblk->directory_table; in squashfs_readdir()
|
D | file_direct.c | 113 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readpages_block() local 115 int mask = (1 << (msblk->block_log - PAGE_SHIFT)) - 1; in squashfs_readpages_block() 129 u64 block_end = block + msblk->block_size; in squashfs_readpages_block()
|
D | id.c | 48 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_id() local 51 u64 start_block = le64_to_cpu(msblk->id_table[block]); in squashfs_get_id()
|
D | fragment.c | 51 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_frag_lookup() local 54 u64 start_block = le64_to_cpu(msblk->fragment_index[block]); in squashfs_frag_lookup()
|
D | xattr_id.c | 44 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_lookup() local 47 u64 start_block = le64_to_cpu(msblk->xattr_id_table[block]); in squashfs_xattr_lookup()
|
D | symlink.c | 50 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_symlink_readpage() local 84 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0); in squashfs_symlink_readpage()
|
D | export.c | 54 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_inode_lookup() local 57 u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup()
|
D | zlib_wrapper.c | 65 static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, in zlib_uncompress() argument 79 int avail = min(length, msblk->devblksize - offset); in zlib_uncompress()
|
D | inode.c | 116 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_inode() local 117 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() 137 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() 407 if (xattr_id != SQUASHFS_INVALID_XATTR && msblk->xattr_id_table) { in squashfs_read_inode()
|