mmap-cache: merge window_matches() and window_matches_fd()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Sep 2023 02:32:38 +0000 (11:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 Oct 2023 10:53:27 +0000 (19:53 +0900)
commit81598f5ead972fac3f78dc1c8190b059bd5fceeb
tree4a13b8f1999d588950f947e47037422f7f7389d3
parent1ed867d309445b44be734b20d864b321bfb90792
mmap-cache: merge window_matches() and window_matches_fd()

Let's drop meaningless optimization, and always check if the window is
owned by the expected fd.
src/libsystemd/sd-journal/mmap-cache.c