An invalid page can't be dirty.

Reviewed by:	kib
MFC after:	1 week
This commit is contained in:
Alan Cox 2017-08-11 16:27:54 +00:00
parent c642d2f5b5
commit 6921451dab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322404

View file

@ -355,7 +355,7 @@ sendfile_swapin(vm_object_t obj, struct sf_io *sfio, off_t off, off_t len,
&a)) {
pmap_zero_page(pa[i]);
pa[i]->valid = VM_PAGE_BITS_ALL;
pa[i]->dirty = 0;
MPASS(pa[i]->dirty == 0);
vm_page_xunbusy(pa[i]);
i++;
continue;