1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Page flags are reset on (re)allocation. There is no need to clear any

flags except for PG_ZERO in vm_page_free_toq().
This commit is contained in:
Alan Cox 2006-08-21 00:34:31 +00:00
parent e28cb02537
commit 4f9d17d8ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161486

View File

@ -1131,14 +1131,6 @@ vm_page_free_toq(vm_page_t m)
}
panic("vm_page_free: freeing wired page");
}
/*
* Clear the UNMANAGED flag when freeing an unmanaged page.
*/
if (m->flags & PG_UNMANAGED) {
m->flags &= ~PG_UNMANAGED;
}
if (m->hold_count != 0) {
m->flags &= ~PG_ZERO;
VM_PAGE_SETQUEUE2(m, PQ_HOLD);