Lines Matching full:pages

37  * to one zisofs block. Store the data in the @pages array with @pcount
42 struct page **pages, unsigned poffset, in zisofs_uncompress_block() argument
68 if (!pages[i]) in zisofs_uncompress_block()
70 memzero_page(pages[i], 0, PAGE_SIZE); in zisofs_uncompress_block()
71 SetPageUptodate(pages[i]); in zisofs_uncompress_block()
121 if (pages[curpage]) { in zisofs_uncompress_block()
122 stream.next_out = kmap_local_page(pages[curpage]) in zisofs_uncompress_block()
174 if (pages[curpage]) { in zisofs_uncompress_block()
175 flush_dcache_page(pages[curpage]); in zisofs_uncompress_block()
176 SetPageUptodate(pages[curpage]); in zisofs_uncompress_block()
203 * Uncompress data so that pages[full_page] is fully uptodate and possibly
204 * fills in other pages if we have data for them.
207 struct page **pages) in zisofs_fill_pages() argument
222 BUG_ON(!pages[full_page]); in zisofs_fill_pages()
227 * pages with the data we have anyway... in zisofs_fill_pages()
229 start_off = page_offset(pages[full_page]); in zisofs_fill_pages()
268 pcount, pages, poffset, &err); in zisofs_fill_pages()
270 pages += poffset >> PAGE_SHIFT; in zisofs_fill_pages()
290 if (poffset && *pages) { in zisofs_fill_pages()
291 memzero_page(*pages, poffset, PAGE_SIZE - poffset); in zisofs_fill_pages()
292 SetPageUptodate(*pages); in zisofs_fill_pages()
299 * per reference. We inject the additional pages into the page
313 struct page **pages; in zisofs_read_folio() local
338 pages = kcalloc(max_t(unsigned int, zisofs_pages_per_cblock, 1), in zisofs_read_folio()
339 sizeof(*pages), GFP_KERNEL); in zisofs_read_folio()
340 if (!pages) { in zisofs_read_folio()
344 pages[full_page] = page; in zisofs_read_folio()
348 pages[i] = grab_cache_page_nowait(mapping, index); in zisofs_read_folio()
349 if (pages[i]) in zisofs_read_folio()
350 ClearPageError(pages[i]); in zisofs_read_folio()
353 err = zisofs_fill_pages(inode, full_page, pcount, pages); in zisofs_read_folio()
355 /* Release any residual pages, do not SetPageUptodate */ in zisofs_read_folio()
357 if (pages[i]) { in zisofs_read_folio()
358 flush_dcache_page(pages[i]); in zisofs_read_folio()
360 SetPageError(pages[i]); in zisofs_read_folio()
361 unlock_page(pages[i]); in zisofs_read_folio()
363 put_page(pages[i]); in zisofs_read_folio()
368 kfree(pages); in zisofs_read_folio()