Date: Sat, 13 Jun 2009 20:21:08 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194124 - head/sys/fs/tmpfs Message-ID: <200906132021.n5DKL8nw023274@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906132021.n5DKL8nw023274>