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.
This commit is contained in:
Brian Feldman 1999-08-17 22:48:10 +00:00
parent a444756625
commit 38c808edb7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49991

View File

@ -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)
{