svn commit: r323663 - stable/11/sys/kern
Alan Cox
alc at FreeBSD.org
Sun Sep 17 03:34:37 UTC 2017
Author: alc
Date: Sun Sep 17 03:34:36 2017
New Revision: 323663
URL: https://svnweb.freebsd.org/changeset/base/323663
Log:
MFC r322404
An invalid page can't be dirty.
Modified:
stable/11/sys/kern/kern_sendfile.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/kern_sendfile.c
==============================================================================
--- stable/11/sys/kern/kern_sendfile.c Sun Sep 17 03:17:23 2017 (r323662)
+++ stable/11/sys/kern/kern_sendfile.c Sun Sep 17 03:34:36 2017 (r323663)
@@ -366,7 +366,7 @@ sendfile_swapin(vm_object_t obj, struct sf_io *sfio, o
NULL, &a) && i < j) {
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++;
}
More information about the svn-src-stable
mailing list