]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: elide fd matching from window_matches() (#6340)
authorVito Caputo <vcaputo@pengaru.com>
Fri, 14 Jul 2017 17:26:01 +0000 (10:26 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Jul 2017 17:26:01 +0000 (19:26 +0200)
commit8c3d9662ed998451a833af611e92b25e570b00c0
tree2bc89f98fbb33894c24768b8a384d044fe35ad3c
parentc7884da9e44b6578e64706e1826af5fb1c25a64e
journal: elide fd matching from window_matches() (#6340)

Introduces window_matches_fd() for the fd matching case in try_context(),

In find_mmap() we're already walking a list of windows by fd, checking
this is pointless work in a potentially hot loop with many windows.
src/journal/mmap-cache.c