Lines Matching defs:block
14 * compressed fragment block (tail-end packed block). The compressed size
15 * of each datablock is stored in a block list contained within the
20 * block index to datablock location on disk.
23 * retaining a simple and space-efficient block list on disk. The cache
157 * Read the next n blocks from the block list, starting from
158 * metadata block <start_block, offset>.
164 long long block = 0;
178 ERROR("read_indexes: reading block [%llx:%x]\n",
189 block += SQUASHFS_COMPRESSED_SIZE_BLOCK(size);
195 return block;
205 * can cache one index -> datablock/blocklist-block mapping. We wish
224 * on-disk locations of the datablock and block list metadata block
269 * If necessary grow cache slot by reading block list. Cache
326 static int read_blocklist(struct inode *inode, int index, u64 *block)
332 int res = fill_meta_index(inode, index, &start, &offset, block);
335 " 0x%x, block 0x%llx\n", res, index, start, offset,
336 *block);
345 * extra block indexes needed.
351 *block += blks;
355 * Read length of block specified by index.
392 * many PAGE_SIZE pages (default block size is 128 KiB) explicitly
420 /* Read datablock stored packed inside a fragment (tail-end packed block) */
430 ERROR("Unable to read page, block %llx, size %x\n",
459 TRACE("Entered squashfs_readpage, page index %lx, start block %llx\n",
468 u64 block = 0;
469 int bsize = read_blocklist(inode, index, &block);
476 res = squashfs_readpage_block(page, block, bsize, expected);