diff options
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 0a38aa3..11ca203 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -137,7 +137,7 @@ swapdev_strategy(ap) vhold(sp->sw_vp); s = splvm(); - if ((bp->b_flags & B_READ) == 0) { + if (bp->b_iocmd == BIO_WRITE) { vp = bp->b_vp; if (vp) { vp->v_numoutput--; |