]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: explicitly add fds to mmap-cache (#6307)
authorVito Caputo <vcaputo@gnugeneration.com>
Mon, 10 Jul 2017 23:24:56 +0000 (16:24 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jul 2017 23:24:56 +0000 (19:24 -0400)
commitbe7cdd8ec992b354a98b89e5928aad1b574d01d5
tree80467cba6a73f00cb942c46869d7a2ca1cd608fd
parent0d94d1e628659fffe89ff1b8536d7ae01c22812c
journal: explicitly add fds to mmap-cache (#6307)

This way we have a MMapFileDescriptor reference external to the cache,
and can supply the handle directly to mmap_cache_get(), eliminating
hashmap lookups entirely from the hot path.
src/journal/journal-file.c
src/journal/journal-file.h
src/journal/journal-verify.c
src/journal/mmap-cache.c
src/journal/mmap-cache.h
src/journal/test-mmap-cache.c