Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2009 18:14:27 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 163186 for review
Message-ID:  <200905311814.n4VIERL1018163@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=163186

Change 163186 by trasz@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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905311814.n4VIERL1018163>