From 912e4ae9f7e4450f6e75f085732d074cd619ba39 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 22 Mar 2000 08:40:13 +0000 Subject: [PATCH] Fix one place which knew that B_WRITE was zero. Fix a stylistic mistake of mine while here. Found by: Stephen Hocking --- sys/vm/swap_pager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 2b00c5b60c3f..c9ab719110c0 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -847,7 +847,7 @@ swap_pager_strategy(vm_object_t object, struct buf *bp) * Deal with BIO_DELETE */ - if (bp->b_iocmd & BIO_DELETE) { + if (bp->b_iocmd == BIO_DELETE) { /* * FREE PAGE(s) - destroy underlying swap that is no longer * needed. @@ -1333,6 +1333,7 @@ swap_pager_putpages(object, m, count, sync, rtvals) bp = getpbuf(&nsw_wcount_async); bp->b_flags = B_ASYNC; } + bp->b_iocmd = BIO_WRITE; bp->b_spc = NULL; /* not used, but NULL-out anyway */ pmap_qenter((vm_offset_t)bp->b_data, &m[i], n);