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:
parent
bc3b2c5545
commit
87b0ab69a9
@ -1372,7 +1372,7 @@ swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
|||||||
mreq->pindex,
|
mreq->pindex,
|
||||||
blk + j
|
blk + j
|
||||||
);
|
);
|
||||||
vm_page_dirty(mreq);
|
MPASS(mreq->dirty == VM_PAGE_BITS_ALL);
|
||||||
mreq->oflags |= VPO_SWAPINPROG;
|
mreq->oflags |= VPO_SWAPINPROG;
|
||||||
bp->b_pages[j] = mreq;
|
bp->b_pages[j] = mreq;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user