• Home
  • Raw
  • Download

Lines Matching refs:pl

197 	struct page_list *pl;  in alloc_pl()  local
199 pl = kmalloc(sizeof(*pl), gfp); in alloc_pl()
200 if (!pl) in alloc_pl()
203 pl->page = alloc_page(gfp); in alloc_pl()
204 if (!pl->page) { in alloc_pl()
205 kfree(pl); in alloc_pl()
209 return pl; in alloc_pl()
212 static void free_pl(struct page_list *pl) in free_pl() argument
214 __free_page(pl->page); in free_pl()
215 kfree(pl); in free_pl()
222 static void kcopyd_put_pages(struct dm_kcopyd_client *kc, struct page_list *pl) in kcopyd_put_pages() argument
227 next = pl->next; in kcopyd_put_pages()
230 free_pl(pl); in kcopyd_put_pages()
232 pl->next = kc->pages; in kcopyd_put_pages()
233 kc->pages = pl; in kcopyd_put_pages()
237 pl = next; in kcopyd_put_pages()
238 } while (pl); in kcopyd_put_pages()
244 struct page_list *pl; in kcopyd_get_pages() local
249 pl = alloc_pl(__GFP_NOWARN | __GFP_NORETRY | __GFP_KSWAPD_RECLAIM); in kcopyd_get_pages()
250 if (unlikely(!pl)) { in kcopyd_get_pages()
252 pl = kc->pages; in kcopyd_get_pages()
253 if (unlikely(!pl)) in kcopyd_get_pages()
255 kc->pages = pl->next; in kcopyd_get_pages()
258 pl->next = *pages; in kcopyd_get_pages()
259 *pages = pl; in kcopyd_get_pages()
273 static void drop_pages(struct page_list *pl) in drop_pages() argument
277 while (pl) { in drop_pages()
278 next = pl->next; in drop_pages()
279 free_pl(pl); in drop_pages()
280 pl = next; in drop_pages()
290 struct page_list *pl = NULL, *next; in client_reserve_pages() local
295 if (pl) in client_reserve_pages()
296 drop_pages(pl); in client_reserve_pages()
299 next->next = pl; in client_reserve_pages()
300 pl = next; in client_reserve_pages()
304 kcopyd_put_pages(kc, pl); in client_reserve_pages()
536 .mem.ptr.pl = job->pages, in run_io_job()