Home
last modified time | relevance | path

Searched refs:msblk (Results 1 – 14 of 14) sorted by relevance

/external/squashfs-tools/kernel/fs/squashfs/
Dsuper.c69 struct squashfs_sb_info *msblk; in squashfs_fill_super() local
81 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); in squashfs_fill_super()
86 msblk = sb->s_fs_info; in squashfs_fill_super()
88 msblk->stream.workspace = kmalloc(zlib_inflate_workspacesize(), in squashfs_fill_super()
90 if (msblk->stream.workspace == NULL) { in squashfs_fill_super()
101 msblk->devblksize = sb_min_blocksize(sb, BLOCK_SIZE); in squashfs_fill_super()
102 msblk->devblksize_log2 = ffz(~msblk->devblksize); in squashfs_fill_super()
104 mutex_init(&msblk->read_data_mutex); in squashfs_fill_super()
105 mutex_init(&msblk->meta_index_mutex); in squashfs_fill_super()
113 msblk->bytes_used = sizeof(*sblk); in squashfs_fill_super()
[all …]
Dblock.c49 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_block_length() local
56 if (msblk->devblksize - *offset == 1) { in get_block_length()
85 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_data() local
87 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data()
88 u64 cur_index = index >> msblk->devblksize_log2; in squashfs_read_data()
92 bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1, in squashfs_read_data()
111 (index + length) > msblk->bytes_used) in squashfs_read_data()
118 bytes += msblk->devblksize; in squashfs_read_data()
125 if ((index + 2) > msblk->bytes_used) in squashfs_read_data()
133 bytes = msblk->devblksize - offset; in squashfs_read_data()
[all …]
Dfile.c65 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 …]
Dnamei.c80 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_name() local
118 msblk->directory_table; in get_dir_index_using_name()
141 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; in squashfs_lookup() local
144 u64 block = squashfs_i(dir)->start + msblk->directory_table; in squashfs_lookup()
232 squashfs_i(dir)->start + msblk->directory_table, in squashfs_lookup()
Dcache.c335 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_metadata() local
342 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata()
373 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_fragment() local
375 return squashfs_cache_get(sb, msblk->fragment_cache, start_block, in squashfs_get_fragment()
388 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_datablock() local
390 return squashfs_cache_get(sb, msblk->read_page, start_block, length); in squashfs_get_datablock()
Ddir.c56 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_offset() local
92 msblk->directory_table; in get_dir_index_using_offset()
107 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readdir() local
108 u64 block = squashfs_i(inode)->start + msblk->directory_table; in squashfs_readdir()
Did.c50 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_id() local
53 u64 start_block = le64_to_cpu(msblk->id_table[block]); in squashfs_get_id()
Dfragment.c53 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_frag_lookup() local
56 u64 start_block = le64_to_cpu(msblk->fragment_index[block]); in squashfs_frag_lookup()
Dsymlink.c50 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()
Dexport.c54 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()
Dinode.c110 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_inode() local
111 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
130 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dinode.c91 struct squashfs_sb_info *msblk = &s->u.squashfs_sb; in get_block_length() local
98 if (msblk->devblksize - *offset == 1) { in get_block_length()
99 if (msblk->swap) in get_block_length()
108 if (msblk->swap) in get_block_length()
117 if (msblk->swap) { in get_block_length()
132 if (SQUASHFS_CHECK_DATA(msblk->sblk.flags)) { in get_block_length()
133 if (*offset == msblk->devblksize) { in get_block_length()
159 struct squashfs_sb_info *msblk = &s->u.squashfs_sb; in squashfs_read_data() local
161 msblk->devblksize_log2) + 2]; in squashfs_read_data()
162 unsigned int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data()
[all …]
Dsquashfs2_0.c61 struct squashfs_sb_info *msblk = &s->u.squashfs_sb; in read_fragment_index_table_2() local
62 struct squashfs_super_block *sblk = &msblk->sblk; in read_fragment_index_table_2()
64 if (!(msblk->fragment_index_2 = kmalloc(SQUASHFS_FRAGMENT_INDEX_BYTES_2 in read_fragment_index_table_2()
72 msblk->fragment_index_2, in read_fragment_index_table_2()
81 if (msblk->swap) { in read_fragment_index_table_2()
88 &msblk->fragment_index_2[i], 1); in read_fragment_index_table_2()
89 msblk->fragment_index_2[i] = fragment; in read_fragment_index_table_2()
101 struct squashfs_sb_info *msblk = &s->u.squashfs_sb; in get_fragment_location_2() local
103 msblk->fragment_index_2[SQUASHFS_FRAGMENT_INDEX_2(fragment)]; in get_fragment_location_2()
107 if (msblk->swap) { in get_fragment_location_2()
[all …]
Dsquashfs.h55 extern void release_cached_fragment(struct squashfs_sb_info *msblk, struct
70 extern int squashfs_1_0_supported(struct squashfs_sb_info *msblk);
72 static inline int squashfs_1_0_supported(struct squashfs_sb_info *msblk) in squashfs_1_0_supported() argument
79 extern int squashfs_2_0_supported(struct squashfs_sb_info *msblk);
81 static inline int squashfs_2_0_supported(struct squashfs_sb_info *msblk) in squashfs_2_0_supported() argument