Lines Matching refs:pages

42 				      struct page **pages, unsigned poffset,  in zisofs_uncompress_block()  argument
68 if (!pages[i]) in zisofs_uncompress_block()
70 memset(page_address(pages[i]), 0, PAGE_SIZE); in zisofs_uncompress_block()
71 flush_dcache_page(pages[i]); in zisofs_uncompress_block()
72 SetPageUptodate(pages[i]); in zisofs_uncompress_block()
122 if (pages[curpage]) { in zisofs_uncompress_block()
123 stream.next_out = page_address(pages[curpage]) in zisofs_uncompress_block()
175 if (pages[curpage]) { in zisofs_uncompress_block()
176 flush_dcache_page(pages[curpage]); in zisofs_uncompress_block()
177 SetPageUptodate(pages[curpage]); in zisofs_uncompress_block()
202 struct page **pages) in zisofs_fill_pages() argument
217 BUG_ON(!pages[full_page]); in zisofs_fill_pages()
224 start_off = page_offset(pages[full_page]); in zisofs_fill_pages()
263 pcount, pages, poffset, &err); in zisofs_fill_pages()
265 pages += poffset >> PAGE_SHIFT; in zisofs_fill_pages()
285 if (poffset && *pages) { in zisofs_fill_pages()
286 memset(page_address(*pages) + poffset, 0, in zisofs_fill_pages()
288 flush_dcache_page(*pages); in zisofs_fill_pages()
289 SetPageUptodate(*pages); in zisofs_fill_pages()
309 struct page **pages; in zisofs_readpage() local
334 pages = kcalloc(max_t(unsigned int, zisofs_pages_per_cblock, 1), in zisofs_readpage()
335 sizeof(*pages), GFP_KERNEL); in zisofs_readpage()
336 if (!pages) { in zisofs_readpage()
340 pages[full_page] = page; in zisofs_readpage()
344 pages[i] = grab_cache_page_nowait(mapping, index); in zisofs_readpage()
345 if (pages[i]) { in zisofs_readpage()
346 ClearPageError(pages[i]); in zisofs_readpage()
347 kmap(pages[i]); in zisofs_readpage()
351 err = zisofs_fill_pages(inode, full_page, pcount, pages); in zisofs_readpage()
355 if (pages[i]) { in zisofs_readpage()
356 flush_dcache_page(pages[i]); in zisofs_readpage()
358 SetPageError(pages[i]); in zisofs_readpage()
359 kunmap(pages[i]); in zisofs_readpage()
360 unlock_page(pages[i]); in zisofs_readpage()
362 put_page(pages[i]); in zisofs_readpage()
367 kfree(pages); in zisofs_readpage()