Module Name: src Committed By: chs Date: Sun Oct 25 00:05:26 UTC 2020
Modified Files: src/sys/uvm: uvm_anon.c Log Message: Handle PG_PAGEOUT in uvm_anon_release() too. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/uvm/uvm_anon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_anon.c diff -u src/sys/uvm/uvm_anon.c:1.79 src/sys/uvm/uvm_anon.c:1.80 --- src/sys/uvm/uvm_anon.c:1.79 Thu Jul 9 05:57:15 2020 +++ src/sys/uvm/uvm_anon.c Sun Oct 25 00:05:26 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_anon.c,v 1.79 2020/07/09 05:57:15 skrll Exp $ */ +/* $NetBSD: uvm_anon.c,v 1.80 2020/10/25 00:05:26 chs Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.79 2020/07/09 05:57:15 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.80 2020/10/25 00:05:26 chs Exp $"); #include "opt_uvmhist.h" @@ -371,6 +371,11 @@ uvm_anon_release(struct vm_anon *anon) KASSERT(pg->loan_count == 0); KASSERT(anon->an_ref == 0); + if ((pg->flags & PG_PAGEOUT) != 0) { + pg->flags &= ~PG_PAGEOUT; + uvm_pageout_done(1); + } + uvm_pagefree(pg); KASSERT(anon->an_page == NULL); lock = anon->an_lock;