PERFORCE change 187657 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Jan 10 13:04:13 UTC 2011
http://p4web.freebsd.org/@@187657?ac=10
Change 187657 by trasz at trasz_victim on 2011/01/10 13:03:54
Fix assertion.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#50 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#50 (text+ko) ====
@@ -211,8 +211,12 @@
}
if (container_resource_reclaimable(i)) {
dest->c_resources[i] -= src->c_resources[i];
- if (dest->c_resources[i] < 0)
+ if (dest->c_resources[i] < 0) {
+ KASSERT(container_resource_sloppy(i) ||
+ container_resource_dampened(i),
+ ("container_sub: usage < 0"));
dest->c_resources[i] = 0;
+ }
}
}
}
More information about the p4-projects
mailing list