mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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:
parent
a444756625
commit
38c808edb7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49991
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user