Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2017 22:21:11 +0000 (UTC)
From:      Alan Cox <alc@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: r320557 - stable/10/sys/vm
Message-ID:  <201707012221.v61MLBcm044663@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Jul  1 22:21:11 2017
New Revision: 320557
URL: https://svnweb.freebsd.org/changeset/base/320557

Log:
  MFC r320049
    Pages that are passed to swap_pager_putpages() should already be fully
    dirty.  Assert that they are fully dirty rather than redundantly calling
    vm_page_dirty() on them.

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

Modified: stable/10/sys/vm/swap_pager.c
==============================================================================
--- stable/10/sys/vm/swap_pager.c	Sat Jul  1 21:54:11 2017	(r320556)
+++ stable/10/sys/vm/swap_pager.c	Sat Jul  1 22:21:11 2017	(r320557)
@@ -1400,7 +1400,7 @@ swap_pager_putpages(vm_object_t object, vm_page_t *m, 
 			    mreq->pindex,
 			    blk + j
 			);
-			vm_page_dirty(mreq);
+			MPASS(mreq->dirty == VM_PAGE_BITS_ALL);
 			rtvals[i+j] = VM_PAGER_OK;
 
 			mreq->oflags |= VPO_SWAPINPROG;



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