Lines Matching refs:tmp_pages
68 struct page **tmp_pages = NULL; in z_erofs_gbuf_growsize() local
82 tmp_pages = kcalloc(nrpages, sizeof(*tmp_pages), GFP_KERNEL); in z_erofs_gbuf_growsize()
83 if (!tmp_pages) in z_erofs_gbuf_growsize()
87 tmp_pages[j] = gbuf->pages[j]; in z_erofs_gbuf_growsize()
91 tmp_pages); in z_erofs_gbuf_growsize()
96 ptr = vmap(tmp_pages, nrpages, VM_MAP, PAGE_KERNEL); in z_erofs_gbuf_growsize()
102 gbuf->pages = tmp_pages; in z_erofs_gbuf_growsize()
112 if (i < z_erofs_gbuf_count && tmp_pages) { in z_erofs_gbuf_growsize()
114 if (tmp_pages[j] && (j >= gbuf->nrpages || in z_erofs_gbuf_growsize()
115 tmp_pages[j] != gbuf->pages[j])) in z_erofs_gbuf_growsize()
116 __free_page(tmp_pages[j]); in z_erofs_gbuf_growsize()
117 kfree(tmp_pages); in z_erofs_gbuf_growsize()