Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2010 16:00:57 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204205 - head/sys/vm
Message-ID:  <201002221600.o1MG0vLf090522@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Feb 22 16:00:56 2010
New Revision: 204205
URL: http://svn.freebsd.org/changeset/base/204205

Log:
  Remove write-only variable.
  
  MFC after:	3 days

Modified:
  head/sys/vm/vnode_pager.c

Modified: head/sys/vm/vnode_pager.c
==============================================================================
--- head/sys/vm/vnode_pager.c	Mon Feb 22 16:00:55 2010	(r204204)
+++ head/sys/vm/vnode_pager.c	Mon Feb 22 16:00:56 2010	(r204205)
@@ -1016,7 +1016,6 @@ vnode_pager_putpages(object, m, count, s
 {
 	int rtval;
 	struct vnode *vp;
-	struct mount *mp;
 	int bytes = count * PAGE_SIZE;
 
 	/*
@@ -1039,8 +1038,6 @@ vnode_pager_putpages(object, m, count, s
 	 */
 	vp = object->handle;
 	VM_OBJECT_UNLOCK(object);
-	if (vp->v_type != VREG)
-		mp = NULL;
 	rtval = VOP_PUTPAGES(vp, m, bytes, sync, rtvals, 0);
 	KASSERT(rtval != EOPNOTSUPP, 
 	    ("vnode_pager: stale FS putpages\n"));



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