aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-08-17 22:48:10 +0000
committerBrian Feldman <green@FreeBSD.org>1999-08-17 22:48:10 +0000
commit38c808edb78cb3d775312fda6f73b1c9b8901c1c (patch)
tree397347233be4afaaae0cd64c4ab14c0a6c57a880 /sys/vm/vm_page.h
parenta4447566250c1792ce85256dc0d27778c003da49 (diff)
downloadsrc-38c808edb78cb3d775312fda6f73b1c9b8901c1c.tar.gz
src-38c808edb78cb3d775312fda6f73b1c9b8901c1c.zip
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.
Notes
Notes: svn path=/head/; revision=49991
Diffstat (limited to 'sys/vm/vm_page.h')
-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 05323c12cd73..7a93d18b2d50 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)
{