Rearrange a few fields to reduce holes
This commit is contained in:
parent
fa13e4a784
commit
6866780115
|
@ -130,6 +130,10 @@ struct Socket {
|
||||||
bool broadcast;
|
bool broadcast;
|
||||||
bool pass_cred;
|
bool pass_cred;
|
||||||
bool pass_sec;
|
bool pass_sec;
|
||||||
|
|
||||||
|
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
|
||||||
|
SocketAddressBindIPv6Only bind_ipv6_only;
|
||||||
|
|
||||||
int priority;
|
int priority;
|
||||||
int mark;
|
int mark;
|
||||||
size_t receive_buffer;
|
size_t receive_buffer;
|
||||||
|
@ -142,9 +146,6 @@ struct Socket {
|
||||||
long mq_maxmsg;
|
long mq_maxmsg;
|
||||||
long mq_msgsize;
|
long mq_msgsize;
|
||||||
|
|
||||||
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
|
|
||||||
SocketAddressBindIPv6Only bind_ipv6_only;
|
|
||||||
|
|
||||||
char *smack;
|
char *smack;
|
||||||
char *smack_ip_in;
|
char *smack_ip_in;
|
||||||
char *smack_ip_out;
|
char *smack_ip_out;
|
||||||
|
|
|
@ -74,19 +74,20 @@ typedef enum LocationType {
|
||||||
struct Location {
|
struct Location {
|
||||||
LocationType type;
|
LocationType type;
|
||||||
|
|
||||||
|
bool seqnum_set;
|
||||||
|
bool realtime_set;
|
||||||
|
bool monotonic_set;
|
||||||
|
bool xor_hash_set;
|
||||||
|
|
||||||
uint64_t seqnum;
|
uint64_t seqnum;
|
||||||
sd_id128_t seqnum_id;
|
sd_id128_t seqnum_id;
|
||||||
bool seqnum_set;
|
|
||||||
|
|
||||||
uint64_t realtime;
|
uint64_t realtime;
|
||||||
bool realtime_set;
|
|
||||||
|
|
||||||
uint64_t monotonic;
|
uint64_t monotonic;
|
||||||
sd_id128_t boot_id;
|
sd_id128_t boot_id;
|
||||||
bool monotonic_set;
|
|
||||||
|
|
||||||
uint64_t xor_hash;
|
uint64_t xor_hash;
|
||||||
bool xor_hash_set;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Directory {
|
struct Directory {
|
||||||
|
|
|
@ -41,9 +41,9 @@ struct Window {
|
||||||
bool keep_always;
|
bool keep_always;
|
||||||
bool in_unused;
|
bool in_unused;
|
||||||
|
|
||||||
|
int prot;
|
||||||
void *ptr;
|
void *ptr;
|
||||||
uint64_t offset;
|
uint64_t offset;
|
||||||
int prot;
|
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
FileDescriptor *fd;
|
FileDescriptor *fd;
|
||||||
|
@ -70,12 +70,11 @@ struct FileDescriptor {
|
||||||
|
|
||||||
struct MMapCache {
|
struct MMapCache {
|
||||||
int n_ref;
|
int n_ref;
|
||||||
|
unsigned n_windows;
|
||||||
|
|
||||||
Hashmap *fds;
|
Hashmap *fds;
|
||||||
Hashmap *contexts;
|
Hashmap *contexts;
|
||||||
|
|
||||||
unsigned n_windows;
|
|
||||||
|
|
||||||
LIST_HEAD(Window, unused);
|
LIST_HEAD(Window, unused);
|
||||||
Window *last_unused;
|
Window *last_unused;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue