diff options
author | dyson <dyson@FreeBSD.org> | 1998-02-01 02:00:20 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1998-02-01 02:00:20 +0000 |
commit | ef6e7f7b8d227ee0ee75d6620fcc51a7e3343d0f (patch) | |
tree | 103d2b5d6a2128f70c109e49172aed5c7b2290df /sys/vm | |
parent | 1d361dc623b0ce8b1559a9861ffe0313a175d5de (diff) | |
download | FreeBSD-src-ef6e7f7b8d227ee0ee75d6620fcc51a7e3343d0f.zip FreeBSD-src-ef6e7f7b8d227ee0ee75d6620fcc51a7e3343d0f.tar.gz |
Fix a performance problem caused by an earlier commit.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/swap_pager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index f62819b..7c7b670 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.82 1998/01/22 17:30:32 dyson Exp $ + * $Id: swap_pager.c,v 1.83 1998/01/31 11:56:29 dyson Exp $ */ /* @@ -1595,7 +1595,8 @@ swap_pager_finish(spc) for (i = 0; i < spc->spc_count; i++) { pmap_clear_modify(VM_PAGE_TO_PHYS(spc->spc_m[i])); spc->spc_m[i]->dirty = 0; - if (((spc->spc_m[i]->flags & PG_WANTED) || pmap_ts_referenced(VM_PAGE_TO_PHYS(spc->spc_m[i])))) + if ((spc->spc_m[i]->queue != PQ_ACTIVE) && + ((spc->spc_m[i]->flags & PG_WANTED) || pmap_ts_referenced(VM_PAGE_TO_PHYS(spc->spc_m[i])))) vm_page_activate(spc->spc_m[i]); } } |