]> git.ipfire.org Git - thirdparty/systemd.git/commit
ioprio-util: add macro for default ioprio settings
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 14:30:22 +0000 (15:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 15:12:15 +0000 (16:12 +0100)
commit0692548c73fd2736f855cec7b44b13a818b7a560
tree258756ba45ddf13ae8d12e821bf00c5415ea8a72
parent032b3afbf4abe3cf760469d9d1cd2e4162829441
ioprio-util: add macro for default ioprio settings

IOPRIO_CLASS_NONE with any priority value actually is an alias for
IOPRIO_CLASS_BE with priority value 4 – which is the default ioprio for
all processes.

We got this right at one place, but wrong at three others (where we
assumed the default value was 0, not 4). Let's add a
macro that encodes this properly, and use it everywhere.
src/basic/ioprio-util.h
src/core/execute.c
src/core/load-fragment.c