PERFORCE change 163186 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun May 31 18:14:30 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163186
Change 163186 by trasz at trasz_victim on 2009/05/31 18:13:53
Don't store 0 limits.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#3 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#3 (text+ko) ====
@@ -72,6 +72,12 @@
void
hrl_adjust(int subject, id_t subject_id, int per, int object, int action, int64_t amount)
{
+ /*
+ * Limit removal?
+ */
+ if (amount == 0)
+ return;
+
mtx_lock(&hrllock);
nlimits++;
More information about the p4-projects
mailing list