• Home
  • Raw
  • Download

Lines Matching refs:index

48 				int index)  in locate_meta_index()  argument
56 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index()
64 msblk->meta_index[i].offset <= index && in locate_meta_index()
227 static int fill_meta_index(struct inode *inode, int index, in fill_meta_index() argument
243 index /= SQUASHFS_META_INDEXES * skip; in fill_meta_index()
245 while (offset < index) { in fill_meta_index()
246 meta = locate_meta_index(inode, offset + 1, index); in fill_meta_index()
253 offset = index < meta->offset + meta->entries ? index : in fill_meta_index()
273 for (i = meta->offset + meta->entries; i <= index && in fill_meta_index()
326 static int read_blocklist(struct inode *inode, int index, u64 *block) in read_blocklist() argument
332 int res = fill_meta_index(inode, index, &start, &offset, block); in read_blocklist()
335 " 0x%x, block 0x%llx\n", res, index, start, offset, in read_blocklist()
347 if (res < index) { in read_blocklist()
348 blks = read_indexes(inode->i_sb, index - res, &start, &offset); in read_blocklist()
388 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache()
403 push_page = (i == page->index) ? page : in squashfs_copy_cache()
415 if (i != page->index) in squashfs_copy_cache()
451 int index = page->index >> (msblk->block_log - PAGE_SHIFT); in squashfs_readpage() local
453 int expected = index == file_end ? in squashfs_readpage()
460 page->index, squashfs_i(inode)->start); in squashfs_readpage()
462 if (page->index >= ((i_size_read(inode) + PAGE_SIZE - 1) >> in squashfs_readpage()
466 if (index < file_end || squashfs_i(inode)->fragment_block == in squashfs_readpage()
469 int bsize = read_blocklist(inode, index, &block); in squashfs_readpage()