From owner-svn-src-head@FreeBSD.ORG Sat Jun 13 20:21:08 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4FE1106566B; Sat, 13 Jun 2009 20:21:08 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A3D038FC08; Sat, 13 Jun 2009 20:21:08 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5DKL8tv023275; Sat, 13 Jun 2009 20:21:08 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5DKL8nw023274; Sat, 13 Jun 2009 20:21:08 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200906132021.n5DKL8nw023274@svn.freebsd.org> From: Alan Cox Date: Sat, 13 Jun 2009 20:21:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194124 - head/sys/fs/tmpfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 20:21:09 -0000 Author: alc Date: Sat Jun 13 20:21:08 2009 New Revision: 194124 URL: http://svn.freebsd.org/changeset/base/194124 Log: Eliminate unnecessary variables. Modified: head/sys/fs/tmpfs/tmpfs_vnops.c Modified: head/sys/fs/tmpfs/tmpfs_vnops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vnops.c Sat Jun 13 18:35:29 2009 (r194123) +++ head/sys/fs/tmpfs/tmpfs_vnops.c Sat Jun 13 20:21:08 2009 (r194124) @@ -468,8 +468,7 @@ nocache: m = vm_page_grab(tobj, idx, VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_NORMAL | VM_ALLOC_RETRY); if (m->valid != VM_PAGE_BITS_ALL) { - int behind, ahead; - if (vm_pager_has_page(tobj, idx, &behind, &ahead)) { + if (vm_pager_has_page(tobj, idx, NULL, NULL)) { error = vm_pager_get_pages(tobj, &m, 1, 0); if (error != 0) { printf("tmpfs get pages from pager error [read]\n"); @@ -583,8 +582,7 @@ nocache: tpg = vm_page_grab(tobj, idx, VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_NORMAL | VM_ALLOC_RETRY); if (tpg->valid != VM_PAGE_BITS_ALL) { - int behind, ahead; - if (vm_pager_has_page(tobj, idx, &behind, &ahead)) { + if (vm_pager_has_page(tobj, idx, NULL, NULL)) { error = vm_pager_get_pages(tobj, &tpg, 1, 0); if (error != 0) { printf("tmpfs get pages from pager error [write]\n");