Lines Matching refs:block
49 * Look-up block in cache, and increment usage count. If not in cache, read
53 struct squashfs_cache *cache, u64 block, int length)
62 if (cache->entry[i].block == block) {
103 entry->block = block;
110 entry->length = squashfs_read_data(sb, block, length,
160 TRACE("Got %s %d, start block %lld, refcount %d, error %d\n",
161 cache->name, i, entry->block, entry->refcount, entry->error);
165 block);
182 * If there's any processes waiting for a block to become
257 entry->block = SQUASHFS_INVALID_BLK;
326 * Read length bytes from metadata position <block, offset> (block is the
327 * start of the compressed block on disk, and offset is the offset into
328 * the block once decompressed). Data is packed into consecutive blocks,
329 * and length bytes may require reading more than one block.
332 u64 *block, int *offset, int length)
338 TRACE("Entered squashfs_read_metadata [%llx:%x]\n", *block, *offset);
344 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0);
360 *block = entry->next_index;
406 void *squashfs_read_table(struct super_block *sb, u64 block, int length)
432 res = squashfs_read_data(sb, block, length |