Module Name:    src
Committed By:   para
Date:           Sun Jan  5 15:57:15 UTC 2020

Modified Files:
        src/sys/rump/librump/rumpkern: vm.c
        src/sys/uvm: uvm_map.c uvm_map.h

Log Message:
remove unused predicate function

likely unused since kmem changes


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/rump/librump/rumpkern/vm.c
cvs rdiff -u -r1.369 -r1.370 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.75 -r1.76 src/sys/uvm/uvm_map.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/vm.c
diff -u src/sys/rump/librump/rumpkern/vm.c:1.181 src/sys/rump/librump/rumpkern/vm.c:1.182
--- src/sys/rump/librump/rumpkern/vm.c:1.181	Thu Jan  2 16:56:58 2020
+++ src/sys/rump/librump/rumpkern/vm.c	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm.c,v 1.181 2020/01/02 16:56:58 ad Exp $	*/
+/*	$NetBSD: vm.c,v 1.182 2020/01/05 15:57:15 para Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.181 2020/01/02 16:56:58 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.182 2020/01/05 15:57:15 para Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -684,16 +684,6 @@ uvm_estimatepageable(int *active, int *i
 	*inactive = 1024;
 }
 
-bool
-vm_map_starved_p(struct vm_map *map)
-{
-
-	if (map->flags & VM_MAP_WANTVA)
-		return true;
-
-	return false;
-}
-
 int
 uvm_loan(struct vm_map *map, vaddr_t start, vsize_t len, void *v, int flags)
 {

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.369 src/sys/uvm/uvm_map.c:1.370
--- src/sys/uvm/uvm_map.c:1.369	Tue Dec 31 22:42:51 2019
+++ src/sys/uvm/uvm_map.c	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.369 2019/12/31 22:42:51 ad Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.370 2020/01/05 15:57:15 para 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.369 2019/12/31 22:42:51 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.370 2020/01/05 15:57:15 para Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -4788,20 +4788,6 @@ uvm_map_reference(struct vm_map *map)
 	mutex_exit(&map->misc_lock);
 }
 
-bool
-vm_map_starved_p(struct vm_map *map)
-{
-
-	if ((map->flags & VM_MAP_WANTVA) != 0) {
-		return true;
-	}
-	/* XXX */
-	if ((vm_map_max(map) - vm_map_min(map)) / 16 * 15 < map->size) {
-		return true;
-	}
-	return false;
-}
-
 void
 uvm_map_lock_entry(struct vm_map_entry *entry)
 {

Index: src/sys/uvm/uvm_map.h
diff -u src/sys/uvm/uvm_map.h:1.75 src/sys/uvm/uvm_map.h:1.76
--- src/sys/uvm/uvm_map.h:1.75	Thu Aug  1 02:28:55 2019
+++ src/sys/uvm/uvm_map.h	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.h,v 1.75 2019/08/01 02:28:55 riastradh Exp $	*/
+/*	$NetBSD: uvm_map.h,v 1.76 2020/01/05 15:57:15 para Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -316,8 +316,6 @@ int		uvm_mapent_trymerge(struct vm_map *
 		    struct vm_map_entry *, int);
 #define	UVM_MERGE_COPYING	1
 
-bool		vm_map_starved_p(struct vm_map *);
-
 /*
  * VM map locking operations.
  */

Reply via email to