Skip to content

Commit

Permalink
criu: page-pipe: introduce page_pipe_destroy_ppb
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
  • Loading branch information
rppt authored and xemul committed Oct 17, 2016
1 parent 316b613 commit c7c6751
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions criu/include/page-pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,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__ */
6 changes: 6 additions & 0 deletions criu/page-pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,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;
Expand Down

0 comments on commit c7c6751

Please sign in to comment.