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
This commit is contained in:
Alan Cox 2010-08-04 05:09:02 +00:00
parent ffea18bdfa
commit 3b156706c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210837

View File

@ -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)