diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-31 15:26:19 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-31 15:26:19 +0000 |
commit | 6afc0e94c07ecf26f02332db7d8bdbe29ce1ebd1 (patch) | |
tree | da39948422f5198d9577412dd16be9e3c04f0ecb | |
parent | 7fd079b780ff34bacf9e8457927982d33b21d9e2 (diff) |
do not init swapdev_vp if it's already done elsewhere; art@ ok
-rw-r--r-- | sys/uvm/uvm_swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 86c8d0b0c36..4eddeba5d8b 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.34 2001/08/11 10:57:22 art Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.35 2001/08/31 15:26:18 mickey Exp $ */ /* $NetBSD: uvm_swap.c,v 1.37 2000/05/19 03:45:04 thorpej Exp $ */ /* @@ -303,7 +303,7 @@ uvm_swap_init() lockinit(&swap_syscall_lock, PVM, "swapsys", 0, 0); simple_lock_init(&uvm.swap_data_lock); - if (bdevvp(swapdev, &swapdev_vp)) + if (!swapdev_vp && bdevvp(swapdev, &swapdev_vp)) panic("uvm_swap_init: can't get vnode for swap device"); /* |