svn commit: r320049 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sat Jun 17 03:05:27 UTC 2017
Author: alc
Date: Sat Jun 17 03:05:25 2017
New Revision: 320049
URL: https://svnweb.freebsd.org/changeset/base/320049
Log:
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.
Reviewed by: kib, markj
MFC after: 1 week
X-MFC after: r319932
Modified:
head/sys/vm/swap_pager.c
Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c Sat Jun 17 02:58:31 2017 (r320048)
+++ head/sys/vm/swap_pager.c Sat Jun 17 03:05:25 2017 (r320049)
@@ -1372,7 +1372,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;
}
More information about the svn-src-head
mailing list