[CRIU] [PATCH] files: Reorder fdinfo_list_entry fields

Andrei Vagin avagin at virtuozzo.com
Tue Aug 8 04:21:36 MSK 2017


Applied
On Thu, Aug 03, 2017 at 05:14:30PM +0300, Kirill Tkhai wrote:
> Keep int pid with short-len fields to avoid
> alignment gaps in structure.
> 
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> ---
>  criu/include/files.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/include/files.h b/criu/include/files.h
> index 718677a7e..e1f5da62f 100644
> --- a/criu/include/files.h
> +++ b/criu/include/files.h
> @@ -85,8 +85,8 @@ struct fdinfo_list_entry {
>  	struct file_desc	*desc;		/* Associated file descriptor */
>  	struct list_head	ps_list;	/* To chain  per-task files */
>  	struct pstree_item	*task;
> -	int			pid;
>  	FdinfoEntry		*fe;
> +	int			pid;
>  	u8			received:1;
>  	u8			stage:3;
>  	u8			fake:1;
> 


More information about the CRIU mailing list