Lines Matching full:pl

220 	struct page_list *pl;  in alloc_pl()  local
222 pl = kmalloc(sizeof(*pl), gfp); in alloc_pl()
223 if (!pl) in alloc_pl()
226 pl->page = alloc_page(gfp | __GFP_HIGHMEM); in alloc_pl()
227 if (!pl->page) { in alloc_pl()
228 kfree(pl); in alloc_pl()
232 return pl; in alloc_pl()
235 static void free_pl(struct page_list *pl) in free_pl() argument
237 __free_page(pl->page); in free_pl()
238 kfree(pl); in free_pl()
245 static void kcopyd_put_pages(struct dm_kcopyd_client *kc, struct page_list *pl) in kcopyd_put_pages() argument
250 next = pl->next; in kcopyd_put_pages()
253 free_pl(pl); in kcopyd_put_pages()
255 pl->next = kc->pages; in kcopyd_put_pages()
256 kc->pages = pl; in kcopyd_put_pages()
260 pl = next; in kcopyd_put_pages()
261 } while (pl); in kcopyd_put_pages()
267 struct page_list *pl; in kcopyd_get_pages() local
272 pl = alloc_pl(__GFP_NOWARN | __GFP_NORETRY | __GFP_KSWAPD_RECLAIM); in kcopyd_get_pages()
273 if (unlikely(!pl)) { in kcopyd_get_pages()
275 pl = kc->pages; in kcopyd_get_pages()
276 if (unlikely(!pl)) in kcopyd_get_pages()
278 kc->pages = pl->next; in kcopyd_get_pages()
281 pl->next = *pages; in kcopyd_get_pages()
282 *pages = pl; in kcopyd_get_pages()
296 static void drop_pages(struct page_list *pl) in drop_pages() argument
300 while (pl) { in drop_pages()
301 next = pl->next; in drop_pages()
302 free_pl(pl); in drop_pages()
303 pl = next; in drop_pages()
313 struct page_list *pl = NULL, *next; in client_reserve_pages() local
318 if (pl) in client_reserve_pages()
319 drop_pages(pl); in client_reserve_pages()
322 next->next = pl; in client_reserve_pages()
323 pl = next; in client_reserve_pages()
327 kcopyd_put_pages(kc, pl); in client_reserve_pages()
561 .mem.ptr.pl = job->pages, in run_io_job()