Date: Sun, 1 Oct 2017 17:04:26 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324173 - head/sys/vm Message-ID: <201710011704.v91H4QXJ045869@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710011704.v91H4QXJ045869>