mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
restore: Move struct pipe_list_entry at top of file
Stage structures in one place. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
13
cr-restore.c
13
cr-restore.c
@@ -80,6 +80,12 @@ struct shmem_id {
|
|||||||
unsigned long shmid;
|
unsigned long shmid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct pipe_list_entry {
|
||||||
|
struct list_head list;
|
||||||
|
struct pipe_entry e;
|
||||||
|
off_t offset;
|
||||||
|
};
|
||||||
|
|
||||||
static struct shmem_id *shmem_ids;
|
static struct shmem_id *shmem_ids;
|
||||||
|
|
||||||
static struct fmap_fd *fmap_fds;
|
static struct fmap_fd *fmap_fds;
|
||||||
@@ -1156,13 +1162,6 @@ err:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct pipe_list_entry {
|
|
||||||
struct pipe_entry e;
|
|
||||||
struct list_head list;
|
|
||||||
off_t offset;
|
|
||||||
};
|
|
||||||
|
|
||||||
static int prepare_pipes(int pid)
|
static int prepare_pipes(int pid)
|
||||||
{
|
{
|
||||||
u32 type = 0, ret = 1;
|
u32 type = 0, ret = 1;
|
||||||
|
Reference in New Issue
Block a user