Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.18 (requested by skrll):



details:   https://anonhg.NetBSD.org/src/rev/5371118b510b
branches:  netbsd-1-6
changeset: 530231:5371118b510b
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 02 14:30:10 2003 +0000

description:
Pull up revision 1.18 (requested by skrll):
add a new km flag UVM_KMF_CANFAIL, which causes uvm_km_kmemalloc() to
return failure if swap is full and there are no free physical pages.
have malloc() use this flag if M_CANFAIL is passed to it.
use M_CANFAIL to allow amap_extend() to fail when memory is scarce.
this should prevent most of the remaining hangs in low-memory situations.

diffstat:

 sys/uvm/uvm_amap.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9a9538a2d079 -r 5371118b510b sys/uvm/uvm_amap.h
--- a/sys/uvm/uvm_amap.h        Mon Jun 02 14:30:01 2003 +0000
+++ b/sys/uvm/uvm_amap.h        Mon Jun 02 14:30:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_amap.h,v 1.17 2001/06/02 18:09:25 chs Exp $        */
+/*     $NetBSD: uvm_amap.h,v 1.17.16.1 2003/06/02 14:30:10 tron Exp $  */
 
 /*
  *
@@ -91,7 +91,7 @@
                             boolean_t, vaddr_t, vaddr_t));
 void           amap_cow_now    /* resolve all COW faults now */
                        __P((struct vm_map *, struct vm_map_entry *));
-void           amap_extend     /* make amap larger */
+int            amap_extend     /* make amap larger */
                        __P((struct vm_map_entry *, vsize_t));
 int            amap_flags      /* get amap's flags */
                        __P((struct vm_amap *));



Home | Main Index | Thread Index | Old Index