diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-08 03:07:39 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-09 03:34:20 +0200 |
commit | 6866780115a7c0af034f287d965f4bf6b02c1e6d (patch) | |
tree | 22fb668edf9eee9b99d51172c1abfbe4494ead8e /src/journal/mmap-cache.c | |
parent | man: add permalinks to subsection titles too (diff) | |
download | systemd-6866780115a7c0af034f287d965f4bf6b02c1e6d.tar.xz systemd-6866780115a7c0af034f287d965f4bf6b02c1e6d.zip |
Rearrange a few fields to reduce holes
Diffstat (limited to '')
-rw-r--r-- | src/journal/mmap-cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c index 54bf1148e1..767f555526 100644 --- a/src/journal/mmap-cache.c +++ b/src/journal/mmap-cache.c @@ -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; }; |