1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

Consider the zero-copy transmission of a page that was wired by mlock(2).

If a copy-on-write fault occurs on the page, the new copy should inherit
a part of the original page's wire count.

Submitted by: tegge
MFC after: 1 week
This commit is contained in:
Alan Cox 2005-11-01 04:30:21 +00:00
parent 7bde374872
commit 674b706ea0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151918

View File

@ -1677,6 +1677,8 @@ vm_page_cowfault(vm_page_t m)
mnew->valid = VM_PAGE_BITS_ALL;
vm_page_dirty(mnew);
vm_page_flag_clear(mnew, PG_BUSY);
mnew->wire_count = m->wire_count - m->cow;
m->wire_count = m->cow;
}
}