Module Name: src Committed By: ad Date: Fri May 15 22:25:18 UTC 2020
Modified Files: src/sys/uvm: uvm_page_status.c Log Message: uvm_pagemarkdirty(): no need to set radix tree tag unless page is currently marked clean. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/uvm/uvm_page_status.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_page_status.c diff -u src/sys/uvm/uvm_page_status.c:1.4 src/sys/uvm/uvm_page_status.c:1.5 --- src/sys/uvm/uvm_page_status.c:1.4 Sat Mar 14 20:45:23 2020 +++ src/sys/uvm/uvm_page_status.c Fri May 15 22:25:18 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page_status.c,v 1.4 2020/03/14 20:45:23 ad Exp $ */ +/* $NetBSD: uvm_page_status.c,v 1.5 2020/05/15 22:25:18 ad Exp $ */ /*- * Copyright (c)2011 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_page_status.c,v 1.4 2020/03/14 20:45:23 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_page_status.c,v 1.5 2020/05/15 22:25:18 ad Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -108,7 +108,7 @@ uvm_pagemarkdirty(struct vm_page *pg, un if (newstatus == UVM_PAGE_STATUS_CLEAN) { radix_tree_clear_tag(&uobj->uo_pages, idx, UVM_PAGE_DIRTY_TAG); - } else { + } else if (oldstatus == UVM_PAGE_STATUS_CLEAN) { /* * on first dirty page, mark the object dirty. * for vnodes this inserts to the syncer worklist.