mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 01:46:42 -05: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:
parent
7bde374872
commit
674b706ea0
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue