diff options
author | phk <phk@FreeBSD.org> | 2000-03-22 08:40:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-03-22 08:40:13 +0000 |
commit | 1b817afc6dd6947197e1b893dab593733e93e4af (patch) | |
tree | 5b6c43076e00685fe18adeda98318767988e95ff /sys | |
parent | c7896c447c60b19a4c03c8470deeabccacbfb532 (diff) | |
download | FreeBSD-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.c | 3 |
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); |