remove unused predicate function

likely unused since kmem changes
This commit is contained in:
para 2020-01-05 15:57:15 +00:00
parent 43ac7a59e5
commit 1682d72797
3 changed files with 5 additions and 31 deletions

View File

@ -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 *inactive)
*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)
{

View File

@ -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)
{

View File

@ -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.
*/