core: don't go to disk for masked unit state if we know it anyway
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Aug 2021 12:50:54 +0000 (14:50 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 10 Aug 2021 19:30:41 +0000 (20:30 +0100)
commit9cbf12820271eca60380c1dd6ee0027782eb45e8
tree7b26c17e01b0bdc211f28b789798ca663204d75a
parent836fb00f2190811c2bf804860f5afe1160d10eac
core: don't go to disk for masked unit state if we know it anyway

This should speed up our selinux checks a bit, since in most cases we
already know if a unit is masked, so use that info.
src/core/unit.c