• Home
  • Raw
  • Download

Lines Matching refs:block_cache

277 			if (msblk->block_cache[i].block == block)  in squashfs_get_cached_block()
287 if (msblk->block_cache[i].block != in squashfs_get_cached_block()
305 if (msblk->block_cache[i].block == in squashfs_get_cached_block()
307 if (!(msblk->block_cache[i].data = in squashfs_get_cached_block()
317 msblk->block_cache[i].block = SQUASHFS_USED_BLK; in squashfs_get_cached_block()
320 if (!(msblk->block_cache[i].length = in squashfs_get_cached_block()
322 msblk->block_cache[i].data, in squashfs_get_cached_block()
331 msblk->block_cache[i].block = block; in squashfs_get_cached_block()
332 msblk->block_cache[i].next_index = next_index; in squashfs_get_cached_block()
336 if (msblk->block_cache[i].block != block) { in squashfs_get_cached_block()
341 if ((bytes = msblk->block_cache[i].length - offset) >= length) { in squashfs_get_cached_block()
343 memcpy(buffer, msblk->block_cache[i].data + in squashfs_get_cached_block()
345 if (msblk->block_cache[i].length - offset == length) { in squashfs_get_cached_block()
346 *next_block = msblk->block_cache[i].next_index; in squashfs_get_cached_block()
356 memcpy(buffer, msblk->block_cache[i].data + in squashfs_get_cached_block()
360 block = msblk->block_cache[i].next_index; in squashfs_get_cached_block()
1017 if (!(msblk->block_cache = kmalloc(sizeof(struct squashfs_cache) * in squashfs_read_super()
1024 msblk->block_cache[i].block = SQUASHFS_INVALID_BLK; in squashfs_read_super()
1115 kfree(msblk->block_cache); in squashfs_read_super()
1978 if (sbi->block_cache) in squashfs_put_super()
1980 if (sbi->block_cache[i].block != in squashfs_put_super()
1982 kfree(sbi->block_cache[i].data); in squashfs_put_super()
1987 kfree(sbi->block_cache); in squashfs_put_super()
1995 sbi->block_cache = NULL; in squashfs_put_super()