diff options
author | dyson <dyson@FreeBSD.org> | 1996-03-02 02:54:24 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-03-02 02:54:24 +0000 |
commit | ed1fa57da89e71813d6e2e89acbca81d440049c1 (patch) | |
tree | 088df355e4c3ec1798e2e3f969ce6621e24b0125 /sys/vm/swap_pager.c | |
parent | 5f6f44df5a35eca0291a7eee3f09997484de41ea (diff) | |
download | FreeBSD-src-ed1fa57da89e71813d6e2e89acbca81d440049c1.zip FreeBSD-src-ed1fa57da89e71813d6e2e89acbca81d440049c1.tar.gz |
1) Eliminate unnecessary bzero of UPAGES.
2) Eliminate unnecessary copying of pages during/after forks.
3) Add user map simplification.
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 6db54dd..ea062fc 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.59 1996/01/19 03:59:41 dyson Exp $ + * $Id: swap_pager.c,v 1.60 1996/01/31 13:14:21 davidg Exp $ */ /* @@ -179,6 +179,8 @@ static void swap_pager_setvalid __P((vm_object_t object, vm_offset_t offset, int valid)); static void swapsizecheck __P((void)); +#define SWAPLOW (vm_swap_size < (512 * btodb(PAGE_SIZE))) + static inline void swapsizecheck() { @@ -1086,7 +1088,7 @@ swap_pager_getpages(object, m, count, reqpage) * the clean flag so that the page contents will be * preserved. */ - if (swap_pager_full) { + if (SWAPLOW) { for (i = 0; i < count; i++) { m[i]->dirty = VM_PAGE_BITS_ALL; } |