summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-20 12:20:02 +0000
committerphk <phk@FreeBSD.org>1995-11-20 12:20:02 +0000
commit07252df1ff0d5313958c857c63d54863ddc785f1 (patch)
tree3eb8733da02c2fe604d9d5c4204ff6b47779fe46 /sys/vm/vm_pager.c
parent073917f90b539ad77f3d5ee1a5e237dbea5f5c54 (diff)
downloadFreeBSD-src-07252df1ff0d5313958c857c63d54863ddc785f1.zip
FreeBSD-src-07252df1ff0d5313958c857c63d54863ddc785f1.tar.gz
Remove unused vars & funcs, make things static, protoize a little bit.
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r--sys/vm/vm_pager.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 1c9fb70..82b5628 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pager.c,v 1.16 1995/07/13 08:48:42 davidg Exp $
+ * $Id: vm_pager.c,v 1.17 1995/07/29 11:44:29 bde Exp $
*/
/*
@@ -86,13 +86,13 @@ extern struct pagerops swappagerops;
extern struct pagerops vnodepagerops;
extern struct pagerops devicepagerops;
-struct pagerops *pagertab[] = {
+static struct pagerops *pagertab[] = {
&defaultpagerops, /* OBJT_DEFAULT */
&swappagerops, /* OBJT_SWAP */
&vnodepagerops, /* OBJT_VNODE */
&devicepagerops, /* OBJT_DEVICE */
};
-int npagers = sizeof(pagertab) / sizeof(pagertab[0]);
+static int npagers = sizeof(pagertab) / sizeof(pagertab[0]);
/*
* Kernel address space for mapping pages.
@@ -240,18 +240,6 @@ vm_pager_unmap_page(kva)
kmem_free_wakeup(pager_map, kva, PAGE_SIZE);
}
-vm_page_t
-vm_pager_atop(kva)
- vm_offset_t kva;
-{
- vm_offset_t pa;
-
- pa = pmap_kextract(kva);
- if (pa == 0)
- panic("vm_pager_atop");
- return (PHYS_TO_VM_PAGE(pa));
-}
-
vm_object_t
vm_pager_object_lookup(pg_list, handle)
register struct pagerlst *pg_list;
OpenPOWER on IntegriCloud