summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-08-17 22:48:10 +0000
committergreen <green@FreeBSD.org>1999-08-17 22:48:10 +0000
commit30c109da4dbc5c04e928cf748285cacf968a726e (patch)
tree8e37fd5a4c8db8e6b1270f26bc58679c72b32af0 /sys/vm
parentbc7762553a3834f3e84f1e6590eedb93c00213ab (diff)
downloadFreeBSD-src-30c109da4dbc5c04e928cf748285cacf968a726e.zip
FreeBSD-src-30c109da4dbc5c04e928cf748285cacf968a726e.tar.gz
Unbreak the nfs KLD_MODULE. It needs a bit more of vm_page.h than was
exported (notably vm_page_undirty()). Also, let vm_page_dirty() work in a KLD.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 05323c1..7a93d18 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_page.h,v 1.68 1999/08/15 05:36:43 alc Exp $
+ * $Id: vm_page.h,v 1.69 1999/08/17 04:02:33 alc Exp $
*/
/*
@@ -557,8 +557,6 @@ vm_page_sleep_busy(vm_page_t m, int also_m_busy, const char *msg)
return(FALSE);
}
-#if !defined(KLD_MODULE)
-
/*
* vm_page_dirty:
*
@@ -568,7 +566,9 @@ vm_page_sleep_busy(vm_page_t m, int also_m_busy, const char *msg)
static __inline void
vm_page_dirty(vm_page_t m)
{
+#if !defined(KLD_MODULE)
KASSERT(m->queue - m->pc != PQ_CACHE, ("vm_page_dirty: page in cache!"));
+#endif
m->dirty = VM_PAGE_BITS_ALL;
}
@@ -584,6 +584,8 @@ vm_page_undirty(vm_page_t m)
m->dirty = 0;
}
+#if !defined(KLD_MODULE)
+
static __inline vm_page_t
vm_page_list_find(int basequeue, int index, boolean_t prefer_zero)
{
OpenPOWER on IntegriCloud