summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-06-20 20:20:06 +0000
committeralc <alc@FreeBSD.org>2003-06-20 20:20:06 +0000
commit6106a854990966a482eba01eff8df0e97a113425 (patch)
tree79881fa1ffa2860491a78c677a4ea2ffbc090120 /sys/vm/swap_pager.c
parent1b17e03018e87d245f9cfd3b4922abee98e4a09b (diff)
downloadFreeBSD-src-6106a854990966a482eba01eff8df0e97a113425.zip
FreeBSD-src-6106a854990966a482eba01eff8df0e97a113425.tar.gz
Make swap_pager_haspages() static; remove unused function prototypes.
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r--sys/vm/swap_pager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index da56d6d..763f237 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -150,6 +150,8 @@ static vm_object_t
vm_prot_t prot, vm_ooffset_t offset);
static void swap_pager_dealloc(vm_object_t object);
static int swap_pager_getpages(vm_object_t, vm_page_t *, int, int);
+static boolean_t
+ swap_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, int *after);
static void swap_pager_init(void);
static void swap_pager_unswapped(vm_page_t);
static void swap_pager_strategy(vm_object_t, struct bio *);
@@ -724,7 +726,7 @@ swap_pager_copy(srcobject, dstobject, offset, destroysource)
* (that is handled in getpages/putpages). It probably isn't worth
* doing here.
*/
-boolean_t
+static boolean_t
swap_pager_haspage(object, pindex, before, after)
vm_object_t object;
vm_pindex_t pindex;
OpenPOWER on IntegriCloud