Date: Fri, 10 Apr 2015 06:56:49 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281353 - head/sys/vm Message-ID: <201504100656.t3A6ungc010363@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Fri Apr 10 06:56:49 2015 New Revision: 281353 URL: https://svnweb.freebsd.org/changeset/base/281353 Log: UMA zone limit can be lowered, so remove protection against from the sysctl_handle_uma_zone_max(). Sponsored by: Nginx, Inc. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c ============================================================================== --- head/sys/vm/uma_core.c Fri Apr 10 06:55:43 2015 (r281352) +++ head/sys/vm/uma_core.c Fri Apr 10 06:56:49 2015 (r281353) @@ -3540,16 +3540,13 @@ int sysctl_handle_uma_zone_max(SYSCTL_HANDLER_ARGS) { uma_zone_t zone = *(uma_zone_t *)arg1; - int error, max, old; + int error, max; - old = max = uma_zone_get_max(zone); + max = uma_zone_get_max(zone); error = sysctl_handle_int(oidp, &max, 0, req); if (error || !req->newptr) return (error); - if (max < old) - return (EINVAL); - uma_zone_set_max(zone, max); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504100656.t3A6ungc010363>