]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
mount: rename mount_state_active() → MOUNT_STATE_WITH_PROCESS()
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2017 17:25:50 +0000 (19:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 14:17:22 +0000 (16:17 +0200)
commitc634f3d2fc0f9f682af69e2d38b07847e5bd4f14
tree10494515838ce7b3416bf25a6691680cb168d81b
parent22af0e5873978efbb3c210dc4c889041c7d56447
mount: rename mount_state_active() → MOUNT_STATE_WITH_PROCESS()

The function returns true for all states that have a control process
running, and each time we call it that's what we want to know, hence
let's rename it accordingly. Moreover, the more generic unit states have
an ACTIVE state, and it is defined quite differently from the set of
states this function returns true for, hence let's avoid confusion and
not reuse the word "ACTIVE" here in a different context.

Finally, let's uppercase this, since in most ways it's pretty much
identical to a macro
src/core/mount.c