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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user