[CRIU] [PATCH 3/4] files-reg: Align and reorder structure members
Cyrill Gorcunov
gorcunov at openvz.org
Wed Jun 20 12:54:10 EDT 2012
This eliminates holes in structures. No func changes.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
files-reg.c | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/files-reg.c b/files-reg.c
index 0de21ef..8a26754 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -15,16 +15,17 @@
#include "files-reg.h"
struct reg_file_info {
- struct reg_file_entry rfe;
- char *remap_path;
- char *path;
- struct file_desc d;
+ struct file_desc d;
+
+ struct reg_file_entry rfe;
+ char *remap_path;
+ char *path;
};
struct ghost_file {
- u32 id;
- char *path;
- struct list_head list;
+ struct list_head list;
+ u32 id;
+ char *path;
};
/*
@@ -33,10 +34,10 @@ struct ghost_file {
* us. Any brave soul to implement link unlinked file back?
*/
struct ghost_file_dumpee {
- u32 dev;
- u32 ino;
- u32 id;
- struct list_head list;
+ struct list_head list;
+ u32 id;
+ u32 dev;
+ u32 ino;
};
static u32 ghost_file_ids = 1;
--
1.7.7.6
More information about the CRIU
mailing list