diff options
Diffstat (limited to 'sys/uvm/uvm_swap.c')
-rw-r--r-- | sys/uvm/uvm_swap.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index ecbb9f6086a..a0c0d55f1c6 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.59 2004/09/23 06:31:35 tedu Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.60 2004/12/26 21:22:14 miod Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -327,11 +327,8 @@ uvm_swap_initcrypt_all(void) simple_lock(&uvm.swap_data_lock); - for (spp = swap_priority.lh_first; spp != NULL; - spp = spp->spi_swappri.le_next) { - for (sdp = spp->spi_swapdev.cqh_first; - sdp != (void *)&spp->spi_swapdev; - sdp = sdp->swd_next.cqe_next) + LIST_FOREACH(spp, &swap_priority, spi_swappri) { + CIRCLEQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) if (sdp->swd_decrypt == NULL) uvm_swap_initcrypt(sdp, sdp->swd_npages); } |