summaryrefslogtreecommitdiff
path: root/src/journal/mmap-cache.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-21 20:52:23 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-21 20:52:23 +0200
commitf801968466fed39d50d410b30ac828c26722cc95 (patch)
treed17fd84799c0d8191c835e06fae46dec593e4fe2 /src/journal/mmap-cache.h
parentaaeef058865362b6ec5efb982d406f7827159720 (diff)
journal: completely rework the mmap cache as I too dumb to actually understand it
Instead of doing hand optimized fd bisect arrays just use plain old hashmaps. Now I can understand my own code again. Yay! As a side effect this should fix some bad memory accesses caused by accesses after mmap(), introduced in 189.
Diffstat (limited to 'src/journal/mmap-cache.h')
-rw-r--r--src/journal/mmap-cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/mmap-cache.h b/src/journal/mmap-cache.h
index 98a1a731f8..de34634080 100644
--- a/src/journal/mmap-cache.h
+++ b/src/journal/mmap-cache.h
@@ -22,6 +22,8 @@
***/
#include <inttypes.h>
+#include <stdbool.h>
+#include <sys/stat.h>
typedef struct MMapCache MMapCache;