Re: svn commit: r211396 - head/sys/vm

2010-08-17 Thread Ed Schouten
* Andre Oppermann wrote: > + if (keg->uk_maxpages) > + nitems = keg->uk_maxpages * keg->uk_ipers; > + else > + nitems = 0; So what's the actual meaning of the if-statement here? If keg->uk_maxpages == 0, the multiplication will always yield 0 as well, right? --

Re: svn commit: r211396 - head/sys/vm

2010-08-16 Thread Lawrence Stewart
On 08/17/10 00:24, Andre Oppermann wrote: > Author: andre > Date: Mon Aug 16 14:24:00 2010 > New Revision: 211396 > URL: http://svn.freebsd.org/changeset/base/211396 > > Log: > Add uma_zone_get_max() to obtain the effective limit after a call > to uma_zone_set_max(). > > The UMA zone limi

svn commit: r211396 - head/sys/vm

2010-08-16 Thread Andre Oppermann
Author: andre Date: Mon Aug 16 14:24:00 2010 New Revision: 211396 URL: http://svn.freebsd.org/changeset/base/211396 Log: Add uma_zone_get_max() to obtain the effective limit after a call to uma_zone_set_max(). The UMA zone limit is not exactly set to the value supplied but rounded up to