Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2014 19:41:51 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r273147 - stable/9/sys/vm
Message-ID:  <201410151941.s9FJfqPW023576@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Oct 15 19:41:51 2014
New Revision: 273147
URL: https://svnweb.freebsd.org/changeset/base/273147

Log:
  Properly cast nswbuf to long.
  
  Note this is a direct commit to stable/9 because head was fixed with vmem(9)
  commit (r252330).
  
  Reported by:	John Hood (jhood at niksun dot com)

Modified:
  stable/9/sys/vm/vm_pager.c

Modified: stable/9/sys/vm/vm_pager.c
==============================================================================
--- stable/9/sys/vm/vm_pager.c	Wed Oct 15 19:29:22 2014	(r273146)
+++ stable/9/sys/vm/vm_pager.c	Wed Oct 15 19:41:51 2014	(r273147)
@@ -215,7 +215,7 @@ vm_pager_bufferinit()
 	cluster_pbuf_freecnt = nswbuf / 2;
 	vnode_pbuf_freecnt = nswbuf / 2 + 1;
 
-	swapbkva = kmem_alloc_nofault(pager_map, nswbuf * MAXPHYS);
+	swapbkva = kmem_alloc_nofault(pager_map, (long)nswbuf * MAXPHYS);
 	if (!swapbkva)
 		panic("Not enough pager_map VM space for physical buffers");
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410151941.s9FJfqPW023576>