Author: alc
Date: Wed Aug  4 05:09:02 2010
New Revision: 210837
URL: http://svn.freebsd.org/changeset/base/210837

Log:
  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

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c    Wed Aug  4 01:36:48 2010        (r210836)
+++ head/sys/kern/vfs_subr.c    Wed Aug  4 05:09:02 2010        (r210837)
@@ -288,7 +288,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhe
  * 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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to