diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-06-23 21:52:43 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-06-23 21:52:43 +0000 |
commit | 2bf964e9a8db39b75fa0d764ebb935ae875a1a3e (patch) | |
tree | 73332b847bb26b6b40ff8636ab8a515e67a3cdc8 /sys | |
parent | 43dc0011b3ff1fbf5c8a19ad570b7579376f8cd9 (diff) |
Replace handrolled version of uvmfault_unlockmaps with uvmfault_unlockmaps.
ok ariane@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/uvm/uvm_fault.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; } |