summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-03-22 08:40:13 +0000
committerphk <phk@FreeBSD.org>2000-03-22 08:40:13 +0000
commit1b817afc6dd6947197e1b893dab593733e93e4af (patch)
tree5b6c43076e00685fe18adeda98318767988e95ff /sys
parentc7896c447c60b19a4c03c8470deeabccacbfb532 (diff)
downloadFreeBSD-src-1b817afc6dd6947197e1b893dab593733e93e4af.zip
FreeBSD-src-1b817afc6dd6947197e1b893dab593733e93e4af.tar.gz
Fix one place which knew that B_WRITE was zero.
Fix a stylistic mistake of mine while here. Found by: Stephen Hocking <shocking@prth.pgs.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/swap_pager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 2b00c5b..c9ab719 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);
OpenPOWER on IntegriCloud