Rearrange a few fields to reduce holes

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-05-07 21:07:39 -04:00
parent fa13e4a784
commit 6866780115
3 changed files with 11 additions and 10 deletions

View File

@ -130,6 +130,10 @@ struct Socket {
bool broadcast;
bool pass_cred;
bool pass_sec;
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
SocketAddressBindIPv6Only bind_ipv6_only;
int priority;
int mark;
size_t receive_buffer;
@ -142,9 +146,6 @@ struct Socket {
long mq_maxmsg;
long mq_msgsize;
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
SocketAddressBindIPv6Only bind_ipv6_only;
char *smack;
char *smack_ip_in;
char *smack_ip_out;

View File

@ -74,19 +74,20 @@ typedef enum LocationType {
struct Location {
LocationType type;
bool seqnum_set;
bool realtime_set;
bool monotonic_set;
bool xor_hash_set;
uint64_t seqnum;
sd_id128_t seqnum_id;
bool seqnum_set;
uint64_t realtime;
bool realtime_set;
uint64_t monotonic;
sd_id128_t boot_id;
bool monotonic_set;
uint64_t xor_hash;
bool xor_hash_set;
};
struct Directory {

View File

@ -41,9 +41,9 @@ struct Window {
bool keep_always;
bool in_unused;
int prot;
void *ptr;
uint64_t offset;
int prot;
size_t size;
FileDescriptor *fd;
@ -70,12 +70,11 @@ struct FileDescriptor {
struct MMapCache {
int n_ref;
unsigned n_windows;
Hashmap *fds;
Hashmap *contexts;
unsigned n_windows;
LIST_HEAD(Window, unused);
Window *last_unused;
};