From owner-svn-src-stable-9@FreeBSD.ORG Wed Oct 15 19:41:52 2014 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 386311C2; Wed, 15 Oct 2014 19:41:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 241C36AD; Wed, 15 Oct 2014 19:41:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9FJfq1V023577; Wed, 15 Oct 2014 19:41:52 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9FJfqPW023576; Wed, 15 Oct 2014 19:41:52 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201410151941.s9FJfqPW023576@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 15 Oct 2014 19:41:51 +0000 (UTC) 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 X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2014 19:41:52 -0000 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"); }