chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary...
[elogind.git]
/
src
/
cgroup.c
diff --git
a/src/cgroup.c
b/src/cgroup.c
index ca19a4fd4768ef55910e64f5337e0184402d6ab3..0c6f20d4b75311bfa2b8b6e5944c26cb534db8b1 100644
(file)
--- a/
src/cgroup.c
+++ b/
src/cgroup.c
@@
-63,7
+63,7
@@
int cgroup_bonding_realize_list(CGroupBonding *first) {
return 0;
}
return 0;
}
-void cgroup_bonding_free(CGroupBonding *b) {
+void cgroup_bonding_free(CGroupBonding *b
, bool remove_or_trim
) {
assert(b);
if (b->unit) {
assert(b);
if (b->unit) {
@@
-82,7
+82,7
@@
void cgroup_bonding_free(CGroupBonding *b) {
}
}
}
}
- if (b->realized && b->ours) {
+ if (b->realized && b->ours
&& remove_or_trim
) {
if (cgroup_bonding_is_empty(b) > 0)
cg_delete(b->controller, b->path);
if (cgroup_bonding_is_empty(b) > 0)
cg_delete(b->controller, b->path);
@@
-95,11
+95,11
@@
void cgroup_bonding_free(CGroupBonding *b) {
free(b);
}
free(b);
}
-void cgroup_bonding_free_list(CGroupBonding *first) {
+void cgroup_bonding_free_list(CGroupBonding *first
, bool remove_or_trim
) {
CGroupBonding *b, *n;
LIST_FOREACH_SAFE(by_unit, b, n, first)
CGroupBonding *b, *n;
LIST_FOREACH_SAFE(by_unit, b, n, first)
- cgroup_bonding_free(b);
+ cgroup_bonding_free(b
, remove_or_trim
);
}
void cgroup_bonding_trim(CGroupBonding *b, bool delete_root) {
}
void cgroup_bonding_trim(CGroupBonding *b, bool delete_root) {