pid1: rename unit_check_gc to unit_may_gc

"check" is unclear: what is true, what is false? Let's rename to "can_gc" and
revert the return value ("positive" values are easier to grok).

v2:
- rename from unit_can_gc to unit_may_gc
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-02-15 13:04:12 +01:00
parent 94e91c8319
commit f2f725e5cc
9 changed files with 53 additions and 45 deletions
+1 -1
View File
@@ -1057,7 +1057,7 @@ static void unit_gc_sweep(Unit *u, unsigned gc_marker) {
if (u->in_cleanup_queue)
goto bad;
if (unit_check_gc(u))
if (!unit_may_gc(u))
goto good;
u->gc_marker = gc_marker + GC_OFFSET_IN_PATH;