Date: Sun, 8 Nov 2015 18:11:25 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290552 - head/sys/kern Message-ID: <201511081811.tA8IBP1s050339@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sun Nov 8 18:11:24 2015 New Revision: 290552 URL: https://svnweb.freebsd.org/changeset/base/290552 Log: Make naming more consistent; no functional changes. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_rctl.c Modified: head/sys/kern/kern_rctl.c ============================================================================== --- head/sys/kern/kern_rctl.c Sun Nov 8 18:08:31 2015 (r290551) +++ head/sys/kern/kern_rctl.c Sun Nov 8 18:11:24 2015 (r290552) @@ -71,13 +71,13 @@ FEATURE(rctl, "Resource Limits"); #define HRF_DONT_INHERIT 1 #define HRF_DONT_ACCUMULATE 2 -#define RCTL_MAX_INBUFLEN 4 * 1024 -#define RCTL_MAX_OUTBUFLEN 16 * 1024 * 1024 +#define RCTL_MAX_INBUFSIZE 4 * 1024 +#define RCTL_MAX_OUTBUFSIZE 16 * 1024 * 1024 #define RCTL_LOG_BUFSIZE 128 #define RCTL_PCPU_SHIFT (10 * 1000000) -unsigned int rctl_maxbufsize = RCTL_MAX_OUTBUFLEN; +unsigned int rctl_maxbufsize = RCTL_MAX_OUTBUFSIZE; SYSCTL_NODE(_kern_racct, OID_AUTO, rctl, CTLFLAG_RW, 0, "Resource Limits"); SYSCTL_UINT(_kern_racct_rctl, OID_AUTO, maxbufsize, CTLFLAG_RWTUN, @@ -1278,7 +1278,7 @@ rctl_read_inbuf(char **inputstr, const c if (inbuflen <= 0) return (EINVAL); - if (inbuflen > RCTL_MAX_INBUFLEN) + if (inbuflen > RCTL_MAX_INBUFSIZE) return (E2BIG); str = malloc(inbuflen + 1, M_RCTL, M_WAITOK);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511081811.tA8IBP1s050339>