]> git.ipfire.org Git - thirdparty/systemd.git/commit
mmap-cache: simplify API around MMapFileDescriptor
authorVito Caputo <vcaputo@pengaru.com>
Wed, 17 Nov 2021 01:03:15 +0000 (17:03 -0800)
committerVito Caputo <vcaputo@pengaru.com>
Fri, 19 Nov 2021 21:39:00 +0000 (13:39 -0800)
commit1da2c4ceebbf79bf7d103792f265e18d87b5eb25
tree3a227b2ee6fa969bdd9d8c942fd8343bb14b43e2
parent1ccfb792e4f1baaa6bb7b7bc44187c35de091954
mmap-cache: simplify API around MMapFileDescriptor

MMapFileDescriptor carries a reference to its originating
MMapCache, there's no value in supplying the
MMapFileDescriptor-centric functions a separate MMapCache.

A future commit will rename these functions to consistently use
an mmap_cache_fd_* prefix for improved clarity.
src/libsystemd/sd-journal/journal-file.c
src/libsystemd/sd-journal/journal-verify.c
src/libsystemd/sd-journal/mmap-cache.c
src/libsystemd/sd-journal/mmap-cache.h
src/libsystemd/sd-journal/test-mmap-cache.c