diff options
author | dg <dg@FreeBSD.org> | 1995-02-21 01:22:48 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-21 01:22:48 +0000 |
commit | 23db83ee1f7ab7d09467a7f04325232334fb99c0 (patch) | |
tree | 19f8c738e880d18c60eb9001bbde4c61bb5b25f0 /sys/vm/swap_pager.c | |
parent | e48c88182869ce77a273e51b9a5952660ed5254c (diff) | |
download | FreeBSD-src-23db83ee1f7ab7d09467a7f04325232334fb99c0.zip FreeBSD-src-23db83ee1f7ab7d09467a7f04325232334fb99c0.tar.gz |
Deprecated remaining use of vm_deallocate. Deprecated vm_allocate_with_
pager(). Almost completely rewrote vm_mmap(); when John gets done with
the bottom half, it will be a complete rewrite. Deprecated most use of
vm_object_setpager(). Removed side effect of setting object persist
in vm_object_enter and moved this into the pager(s). A few other
cosmetic changes.
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 491abf2..66cc7f9 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.24 1995/01/24 10:12:12 davidg Exp $ + * $Id: swap_pager.c,v 1.25 1995/02/02 09:08:00 davidg Exp $ */ /* @@ -283,7 +283,7 @@ swap_pager_alloc(handle, size, prot, offset) */ object = vm_object_allocate(size); vm_object_enter(object, pager); - vm_object_setpager(object, pager, 0, FALSE); + object->pager = pager; } else { swp->sw_flags = 0; TAILQ_INSERT_TAIL(&swap_pager_un_list, pager, pg_list); @@ -1523,8 +1523,10 @@ swap_pager_output(swp, m, count, flags, rtvals) * during the pageout process, we activate it. */ if ((m[i]->flags & PG_ACTIVE) == 0 && - ((m[i]->flags & PG_WANTED) || pmap_is_referenced(VM_PAGE_TO_PHYS(m[i])))) + ((m[i]->flags & (PG_WANTED|PG_REFERENCED)) || + pmap_is_referenced(VM_PAGE_TO_PHYS(m[i])))) { vm_page_activate(m[i]); + } } } } else { |