From e3ab6622c5b23b577d5f658e095529d74069b75e Mon Sep 17 00:00:00 2001 From: alc Date: Tue, 1 Nov 2005 04:30:21 +0000 Subject: 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 --- sys/vm/vm_page.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 98ec1ef..94943ec 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -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; } } -- cgit v1.1