Commit b6cad305 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

criu: page-pipe: introduce page_pipe_destroy_ppb

Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent dce7ce1e
......@@ -132,4 +132,6 @@ void page_pipe_reinit(struct page_pipe *pp);
extern int page_pipe_split(struct page_pipe *pp, unsigned long addr,
unsigned int *nr_pages);
extern void page_pipe_destroy_ppb(struct page_pipe_buf *ppb);
#endif /* __CR_PAGE_PIPE_H__ */
......@@ -445,6 +445,12 @@ int page_pipe_split(struct page_pipe *pp, unsigned long addr,
return 0;
}
void page_pipe_destroy_ppb(struct page_pipe_buf *ppb)
{
list_del(&ppb->l);
ppb_destroy(ppb);
}
void debug_show_page_pipe(struct page_pipe *pp)
{
struct page_pipe_buf *ppb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment