Home | History | Annotate | Download | only in squashfs

Lines Matching refs:msblk

49 	struct squashfs_sb_info *msblk = sb->s_fs_info;
56 if (msblk->devblksize - *offset == 1) {
85 struct squashfs_sb_info *msblk = sb->s_fs_info;
87 int offset = index & ((1 << msblk->devblksize_log2) - 1);
88 u64 cur_index = index >> msblk->devblksize_log2;
92 bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1,
111 (index + length) > msblk->bytes_used)
118 bytes += msblk->devblksize;
125 if ((index + 2) > msblk->bytes_used)
133 bytes = msblk->devblksize - offset;
143 (index + length) > msblk->bytes_used)
150 bytes += msblk->devblksize;
162 mutex_lock(&msblk->read_data_mutex);
164 msblk->stream.avail_out = 0;
165 msblk->stream.avail_in = 0;
169 if (msblk->stream.avail_in == 0 && k < b) {
170 avail = min(bytes, msblk->devblksize - offset);
182 msblk->stream.next_in = bh[k]->b_data + offset;
183 msblk->stream.avail_in = avail;
187 if (msblk->stream.avail_out == 0) {
188 msblk->stream.next_out = buffer[page++];
189 msblk->stream.avail_out = PAGE_CACHE_SIZE;
193 zlib_err = zlib_inflateInit(&msblk->stream);
204 zlib_err = zlib_inflate(&msblk->stream, Z_NO_FLUSH);
206 if (msblk->stream.avail_in == 0 && k < b)
214 msblk->stream.avail_in,
215 msblk->stream.avail_out);
219 zlib_err = zlib_inflateEnd(&msblk->stream);
225 length = msblk->stream.total_out;
226 mutex_unlock(&msblk->read_data_mutex);
240 in = min(bytes, msblk->devblksize - offset);
264 mutex_unlock(&msblk->read_data_mutex);