svn commit: r324173 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sun Oct 1 17:04:27 UTC 2017
Author: alc
Date: Sun Oct 1 17:04:26 2017
New Revision: 324173
URL: https://svnweb.freebsd.org/changeset/base/324173
Log:
When an I/O error occurs on page out, there is no need to dirty the page,
because it is already dirty. Instead, assert that the page is dirty.
Reviewed by: kib, markj
MFC after: 1 week
Modified:
head/sys/vm/swap_pager.c
Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c Sun Oct 1 16:59:02 2017 (r324172)
+++ head/sys/vm/swap_pager.c Sun Oct 1 17:04:26 2017 (r324173)
@@ -1524,7 +1524,7 @@ swp_pager_async_iodone(struct buf *bp)
* so it doesn't clog the inactive list,
* then finish the I/O.
*/
- vm_page_dirty(m);
+ MPASS(m->dirty == VM_PAGE_BITS_ALL);
vm_page_lock(m);
vm_page_activate(m);
vm_page_unlock(m);
More information about the svn-src-all
mailing list