2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

criu: page-pipe: introduce page_pipe_destroy_ppb

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Mike Rapoport
2016-06-06 09:27:37 +03:00
committed by Andrei Vagin
parent dce7ce1e03
commit b6cad30524
2 changed files with 8 additions and 0 deletions

View File

@@ -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__ */

View File

@@ -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;