Lines Matching refs:expected
422 static int squashfs_readpage_fragment(struct page *page, int expected) in squashfs_readpage_fragment() argument
435 squashfs_copy_cache(page, buffer, expected, in squashfs_readpage_fragment()
442 static int squashfs_readpage_sparse(struct page *page, int expected) in squashfs_readpage_sparse() argument
444 squashfs_copy_cache(page, NULL, expected, 0); in squashfs_readpage_sparse()
455 int expected = index == file_end ? in squashfs_read_folio() local
477 res = squashfs_readpage_sparse(page, expected); in squashfs_read_folio()
479 res = squashfs_readpage_block(page, block, res, expected); in squashfs_read_folio()
481 res = squashfs_readpage_fragment(page, expected); in squashfs_read_folio()
501 unsigned int pages, unsigned int expected) in squashfs_readahead_fragment() argument
514 expected += squashfs_i(inode)->fragment_offset; in squashfs_readahead_fragment()
520 if (expected > offset) { in squashfs_readahead_fragment()
521 unsigned int avail = min_t(unsigned int, expected - in squashfs_readahead_fragment()
560 unsigned int expected; in squashfs_readahead() local
563 expected = start >> msblk->block_log == file_end ? in squashfs_readahead()
567 max_pages = (expected + PAGE_SIZE - 1) >> PAGE_SHIFT; in squashfs_readahead()
584 expected); in squashfs_readahead()
595 expected); in squashfs_readahead()
603 if (res == expected) { in squashfs_readahead()