Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_map_lookup_entry(): save the hint even on failur...



details:   https://anonhg.NetBSD.org/src/rev/6bb1bfb764f7
branches:  trunk
changeset: 745862:6bb1bfb764f7
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Mar 14 17:29:53 2020 +0000

description:
uvm_map_lookup_entry(): save the hint even on failure, since code elsewhere
relies on it pointing to the previous entry.

diffstat:

 sys/uvm/uvm_map.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ffc9ae492dbd -r 6bb1bfb764f7 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sat Mar 14 16:55:17 2020 +0000
+++ b/sys/uvm/uvm_map.c Sat Mar 14 17:29:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.373 2020/03/14 14:15:43 ad Exp $ */
+/*     $NetBSD: uvm_map.c,v 1.374 2020/03/14 17:29:53 ad Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.373 2020/03/14 14:15:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.374 2020/03/14 17:29:53 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -1719,6 +1719,7 @@
                return (true);
        }
 
+       SAVE_HINT(map, map->hint, *entry);
        UVMHIST_LOG(maphist,"<- failed!",0,0,0,0);
        KDASSERT((*entry) == &map->header || (*entry)->end <= address);
        KDASSERT((*entry)->next == &map->header ||



Home | Main Index | Thread Index | Old Index