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:
alc 2017-06-17 03:05:25 +00:00
parent c9cda0bfe0
commit 3f2176677b

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;
}