Lines Matching refs:pages
15 struct page **pages; member
64 struct page **pages, **oldpages; in erofs_pcpubuf_growsize() local
67 pages = kmalloc_array(nrpages, sizeof(*pages), GFP_KERNEL); in erofs_pcpubuf_growsize()
68 if (!pages) { in erofs_pcpubuf_growsize()
74 pages[i] = erofs_allocpage(&pagepool, GFP_KERNEL); in erofs_pcpubuf_growsize()
75 if (!pages[i]) { in erofs_pcpubuf_growsize()
77 oldpages = pages; in erofs_pcpubuf_growsize()
81 ptr = vmap(pages, nrpages, VM_MAP, PAGE_KERNEL); in erofs_pcpubuf_growsize()
84 oldpages = pages; in erofs_pcpubuf_growsize()
90 oldpages = pcb->pages; in erofs_pcpubuf_growsize()
91 pcb->pages = pages; in erofs_pcpubuf_growsize()
139 if (!pcb->pages) in erofs_pcpubuf_exit()
143 if (pcb->pages[i]) in erofs_pcpubuf_exit()
144 put_page(pcb->pages[i]); in erofs_pcpubuf_exit()
145 kfree(pcb->pages); in erofs_pcpubuf_exit()
146 pcb->pages = NULL; in erofs_pcpubuf_exit()