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 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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue