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
This commit is contained in:
Alan Cox 2017-06-17 03:05:25 +00:00
parent bc3b2c5545
commit 87b0ab69a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320049

View File

@ -1372,7 +1372,7 @@ swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
mreq->pindex,
blk + j
);
vm_page_dirty(mreq);
MPASS(mreq->dirty == VM_PAGE_BITS_ALL);
mreq->oflags |= VPO_SWAPINPROG;
bp->b_pages[j] = mreq;
}