diff options
author | alc <alc@FreeBSD.org> | 2010-08-04 05:09:02 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-08-04 05:09:02 +0000 |
commit | b6ec5a5f0a2402c67b95bcef3364f3b7fbfc6ffc (patch) | |
tree | a4fc8413f7844bd7934c702b8ce97ae828a146e6 | |
parent | 552daf39606c3a8c7799c7a9e57409fa4ef0a4cb (diff) | |
download | FreeBSD-src-b6ec5a5f0a2402c67b95bcef3364f3b7fbfc6ffc.zip FreeBSD-src-b6ec5a5f0a2402c67b95bcef3364f3b7fbfc6ffc.tar.gz |
In order for MAXVNODES_MAX to be an "int" on powerpc and sparc, we must
cast PAGE_SIZE to an "int". (Powerpc and sparc, unlike the other
architectures, define PAGE_SIZE as a "long".)
Submitted by: Andreas Tobler
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index d3123a9..20982c6 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -288,7 +288,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW, * grows, the ratio of physical pages to vnodes approaches sixteen to one. */ #ifndef MAXVNODES_MAX -#define MAXVNODES_MAX (512 * (1024 * 1024 * 1024 / PAGE_SIZE / 16)) +#define MAXVNODES_MAX (512 * (1024 * 1024 * 1024 / (int)PAGE_SIZE / 16)) #endif static void vntblinit(void *dummy __unused) |