Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm remove unused predicate function
details: https://anonhg.NetBSD.org/src/rev/c23da57d804e
branches: trunk
changeset: 1006212:c23da57d804e
user: para <para%NetBSD.org@localhost>
date: Sun Jan 05 15:57:15 2020 +0000
description:
remove unused predicate function
likely unused since kmem changes
diffstat:
sys/rump/librump/rumpkern/vm.c | 14 ++------------
sys/uvm/uvm_map.c | 18 ++----------------
sys/uvm/uvm_map.h | 4 +---
3 files changed, 5 insertions(+), 31 deletions(-)
diffs (92 lines):
diff -r 74272c844783 -r c23da57d804e sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c Sun Jan 05 12:14:35 2020 +0000
+++ b/sys/rump/librump/rumpkern/vm.c Sun Jan 05 15:57:15 2020 +0000
@@ -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 @@
*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)
{
diff -r 74272c844783 -r c23da57d804e sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sun Jan 05 12:14:35 2020 +0000
+++ b/sys/uvm/uvm_map.c Sun Jan 05 15:57:15 2020 +0000
@@ -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 @@
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)
{
diff -r 74272c844783 -r c23da57d804e sys/uvm/uvm_map.h
--- a/sys/uvm/uvm_map.h Sun Jan 05 12:14:35 2020 +0000
+++ b/sys/uvm/uvm_map.h Sun Jan 05 15:57:15 2020 +0000
@@ -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 @@
struct vm_map_entry *, int);
#define UVM_MERGE_COPYING 1
-bool vm_map_starved_p(struct vm_map *);
-
/*
* VM map locking operations.
*/
Home |
Main Index |
Thread Index |
Old Index