[CRIU] [PATCH] files: Reorder fdinfo_list_entry fields

Kirill Tkhai ktkhai at virtuozzo.com
Thu Aug 3 17:14:30 MSK 2017


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