summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-11-24 19:55:34 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-11-24 19:55:34 +0000
commitf07d9b721c398e4e750910b8a5fa59530c322179 (patch)
treee1217630ad3358d527846b49b2b59d1230b187e7 /sys
parentec95f119e1d39eecdaf9930d76d9336b60069225 (diff)
garbage collect uvm_errno2vmerror();
ok miod@, art@
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_pager.c28
-rw-r--r--sys/uvm/uvm_pager.h4
2 files changed, 2 insertions, 30 deletions
diff --git a/sys/uvm/uvm_pager.c b/sys/uvm/uvm_pager.c
index e522809c3dc..2782abf9bbc 100644
--- a/sys/uvm/uvm_pager.c
+++ b/sys/uvm/uvm_pager.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pager.c,v 1.44 2007/11/26 22:49:08 miod Exp $ */
+/* $OpenBSD: uvm_pager.c,v 1.45 2008/11/24 19:55:33 thib Exp $ */
/* $NetBSD: uvm_pager.c,v 1.36 2000/11/27 18:26:41 chs Exp $ */
/*
@@ -886,29 +886,3 @@ freed:
}
pool_put(&bufpool, bp);
}
-
-/*
- * translate unix errno values to VM_PAGER_*.
- */
-
-int
-uvm_errno2vmerror(errno)
- int errno;
-{
- switch (errno) {
- case 0:
- return VM_PAGER_OK;
- case EINVAL:
- return VM_PAGER_BAD;
- case EINPROGRESS:
- return VM_PAGER_PEND;
- case EIO:
- return VM_PAGER_ERROR;
- case EAGAIN:
- return VM_PAGER_AGAIN;
- case EBUSY:
- return VM_PAGER_UNLOCK;
- default:
- return VM_PAGER_ERROR;
- }
-}
diff --git a/sys/uvm/uvm_pager.h b/sys/uvm/uvm_pager.h
index 49a0b583438..2291225ddff 100644
--- a/sys/uvm/uvm_pager.h
+++ b/sys/uvm/uvm_pager.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pager.h,v 1.20 2003/06/02 23:28:24 millert Exp $ */
+/* $OpenBSD: uvm_pager.h,v 1.21 2008/11/24 19:55:33 thib Exp $ */
/* $NetBSD: uvm_pager.h,v 1.20 2000/11/27 08:40:05 chs Exp $ */
/*
@@ -164,8 +164,6 @@ void uvm_pagermapout(vaddr_t, int);
struct vm_page **uvm_mk_pcluster(struct uvm_object *, struct vm_page **,
int *, struct vm_page *, int,
voff_t, voff_t);
-int uvm_errno2vmerror(int);
-
/* Flags to uvm_pagermapin() */
#define UVMPAGER_MAPIN_WAITOK 0x01 /* it's okay to wait */
#define UVMPAGER_MAPIN_READ 0x02 /* host <- device */