chiark / gitweb /
journal: completely rework the mmap cache as I too dumb to actually understand it
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 18:52:23 +0000 (20:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 18:52:23 +0000 (20:52 +0200)
commitf801968466fed39d50d410b30ac828c26722cc95
treed17fd84799c0d8191c835e06fae46dec593e4fe2
parentaaeef058865362b6ec5efb982d406f7827159720
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.
Makefile.am
TODO
src/core/service.c
src/journal/mmap-cache.c
src/journal/mmap-cache.h