Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2017 21:54: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-11@freebsd.org
Subject:   svn commit: r320556 - stable/11/sys/vm
Message-ID:  <201707012154.v61LsBFG034167@repo.freebsd.org>

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

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/11/sys/vm/swap_pager.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/swap_pager.c
==============================================================================
--- stable/11/sys/vm/swap_pager.c	Sat Jul  1 21:34:57 2017	(r320555)
+++ stable/11/sys/vm/swap_pager.c	Sat Jul  1 21:54:11 2017	(r320556)
@@ -1370,7 +1370,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);
 			mreq->oflags |= VPO_SWAPINPROG;
 			bp->b_pages[j] = mreq;
 		}



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