Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvm_pagemarkdirty(): no need to set radix tree tag u...
details: https://anonhg.NetBSD.org/src/rev/fe8aed6906d6
branches: trunk
changeset: 972103:fe8aed6906d6
user: ad <ad%NetBSD.org@localhost>
date: Fri May 15 22:25:18 2020 +0000
description:
uvm_pagemarkdirty(): no need to set radix tree tag unless page is currently
marked clean.
diffstat:
sys/uvm/uvm_page_status.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r db97ee31cea0 -r fe8aed6906d6 sys/uvm/uvm_page_status.c
--- a/sys/uvm/uvm_page_status.c Fri May 15 22:22:44 2020 +0000
+++ b/sys/uvm/uvm_page_status.c Fri May 15 22:25:18 2020 +0000
@@ -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 @@
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.
Home |
Main Index |
Thread Index |
Old Index