From 2bf964e9a8db39b75fa0d764ebb935ae875a1a3e Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 23 Jun 2011 21:52:43 +0000 Subject: Replace handrolled version of uvmfault_unlockmaps with uvmfault_unlockmaps. ok ariane@ --- sys/uvm/uvm_fault.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c index 5c4d3b5d65e..6ea81b902b4 100644 --- a/sys/uvm/uvm_fault.c +++ b/sys/uvm/uvm_fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_fault.c,v 1.60 2011/06/06 17:10:23 ariane Exp $ */ +/* $OpenBSD: uvm_fault.c,v 1.61 2011/06/23 21:52:42 oga Exp $ */ /* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */ /* @@ -1936,11 +1936,7 @@ uvmfault_lookup(struct uvm_faultinfo *ufi, boolean_t write_lock) */ if (UVM_ET_ISSUBMAP(ufi->entry)) { tmpmap = ufi->entry->object.sub_map; - if (write_lock) { - vm_map_unlock(ufi->map); - } else { - vm_map_unlock_read(ufi->map); - } + uvmfault_unlockmaps(ufi, write_lock); ufi->map = tmpmap; continue; } -- cgit v1.2.3