Date: Tue, 28 Jul 2009 20:07:59 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 166694 for review Message-ID: <200907282007.n6SK7x8i026683@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=166694 Change 166694 by trasz@trasz_victim on 2009/07/28 20:07:43 Use correct constant. Affected files ... .. //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#31 edit Differences ... ==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#31 (text+ko) ==== @@ -506,10 +506,12 @@ #endif mtx_lock(&hrl_lock); +#ifdef notyet KASSERT(amount <= p->p_usage.hu_resources[resource], ("hrl_free_proc: freeing %lld of %s, which is more than allocated %lld " "for %s (pid %d)", amount, hrl_resource_name(resource), p->p_usage.hu_resources[resource], p->p_comm, p->p_pid)); +#endif p->p_usage.hu_resources[resource] -= amount; cred = p->p_ucred; cred->cr_ruidinfo->ui_usage.hu_resources[resource] -= amount; @@ -1116,7 +1118,7 @@ mtx_assert(&hrl_lock, MA_OWNED); for (i = 0; i < HRL_RESOURCE_MAX; i++) { - (*availablep)[i] = INT_MAX; /* XXX: It's int64_t, not int. */ + (*availablep)[i] = INT64_MAX; (*rulesp)[i] = NULL; }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907282007.n6SK7x8i026683>
