aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2017-10-01 17:04:26 +0000
committerAlan Cox <alc@FreeBSD.org>2017-10-01 17:04:26 +0000
commit41e5a22698438d23a02bab6a8701d5495e32fb60 (patch)
tree63a7efd52c6945e94b1ba448ab58e008f23ab979
parente975a1aba0fba62ab998cbde8df2a18b1adb3909 (diff)
downloadsrc-41e5a22698438d23a02bab6a8701d5495e32fb60.tar.gz
src-41e5a22698438d23a02bab6a8701d5495e32fb60.zip
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
Notes
Notes: svn path=/head/; revision=324173
-rw-r--r--sys/vm/swap_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 946f92b55e78..8e261d9fbe8a 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -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);