summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2000-03-27 21:33:32 +0000
committerdillon <dillon@FreeBSD.org>2000-03-27 21:33:32 +0000
commit5ccef75e02afa360480c05b8d01bdd8f2abc39bc (patch)
treef01da80154cdb9843c291ec59e59ba669f6c6d9a /sys/vm/vm_pager.h
parent8fb4c6b599d7fa91e11e38647e849dbac3dabf29 (diff)
downloadFreeBSD-src-5ccef75e02afa360480c05b8d01bdd8f2abc39bc.zip
FreeBSD-src-5ccef75e02afa360480c05b8d01bdd8f2abc39bc.tar.gz
Add necessary spl protection for swapper. The problem was located by
Alfred while testing his SPLASSERT stuff. This is not a complete fix, more protections are probably needed.
Diffstat (limited to 'sys/vm/vm_pager.h')
-rw-r--r--sys/vm/vm_pager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h
index c548231..3824c63 100644
--- a/sys/vm/vm_pager.h
+++ b/sys/vm/vm_pager.h
@@ -146,6 +146,17 @@ vm_pager_put_pages(
(object, m, count, flags, rtvals);
}
+/*
+ * vm_pager_haspage
+ *
+ * Check to see if an object's pager has the requested page. The
+ * object's pager will also set before and after to give the caller
+ * some idea of the number of pages before and after the requested
+ * page can be I/O'd efficiently.
+ *
+ * This routine does not have to be called at any particular spl.
+ */
+
static __inline boolean_t
vm_pager_has_page(
vm_object_t object,
OpenPOWER on IntegriCloud