Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 09:43:34 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262291 - stable/10/sys/vm
Message-ID:  <201402210943.s1L9hYC4065220@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Fri Feb 21 09:43:34 2014
New Revision: 262291
URL: http://svnweb.freebsd.org/changeset/base/262291

Log:
  MFC r261867:
  Use the right index to free swapspace after vm_page_rename().

Modified:
  stable/10/sys/vm/vm_object.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/vm/vm_object.c
==============================================================================
--- stable/10/sys/vm/vm_object.c	Fri Feb 21 09:42:50 2014	(r262290)
+++ stable/10/sys/vm/vm_object.c	Fri Feb 21 09:43:34 2014	(r262291)
@@ -1628,9 +1628,11 @@ vm_object_backing_scan(vm_object_t objec
 				p = TAILQ_FIRST(&backing_object->memq);
 				continue;
 			}
+
+			/* Use the old pindex to free the right page. */
 			if (backing_object->type == OBJT_SWAP)
-				swap_pager_freespace(backing_object, p->pindex,
-				    1);
+				swap_pager_freespace(backing_object,
+				    new_pindex + backing_offset_index, 1);
 
 #if VM_NRESERVLEVEL > 0
 			/*



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