diff options
author | alc <alc@FreeBSD.org> | 2004-05-22 04:53:51 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-05-22 04:53:51 +0000 |
commit | 5d0912f6d822aa43b6aee5b532f4748d03c89146 (patch) | |
tree | 6d85a1a2ab10a2464008e25a57d32d46bc5a5096 /lib/libc/stdio/ungetwc.c | |
parent | 29c76b12014e9524479c1b3617da95f5acb719e3 (diff) | |
download | FreeBSD-src-5d0912f6d822aa43b6aee5b532f4748d03c89146.zip FreeBSD-src-5d0912f6d822aa43b6aee5b532f4748d03c89146.tar.gz |
To date, unwiring a fictitious page has produced a panic. The reason
being that PHYS_TO_VM_PAGE() returns the wrong vm_page for fictitious
pages but unwiring uses PHYS_TO_VM_PAGE(). The resulting panic
reported an unexpected wired count. Rather than attempting to fix
PHYS_TO_VM_PAGE(), this fix takes advantage of the properties of
fictitious pages. Specifically, fictitious pages will never be
completely unwired. Therefore, we can keep a fictitious page's wired
count forever set to one and thereby avoid the use of
PHYS_TO_VM_PAGE() when we know that we're working with a fictitious
page, just not which one.
In collaboration with: green@, tegge@
PR: kern/29915
Diffstat (limited to 'lib/libc/stdio/ungetwc.c')
0 files changed, 0 insertions, 0 deletions