diff options
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 939f968..ac4e47d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3688,8 +3688,7 @@ vmapbuf(struct buf *bp) GIANT_REQUIRED; - if ((bp->b_flags & B_PHYS) == 0) - panic("vmapbuf"); + KASSERT(bp->b_flags & B_PHYS, ("vmapbuf")); if (bp->b_bufsize < 0) return (-1); prot = (bp->b_iocmd == BIO_READ) ? VM_PROT_READ | VM_PROT_WRITE : @@ -3744,8 +3743,7 @@ vunmapbuf(struct buf *bp) GIANT_REQUIRED; - if ((bp->b_flags & B_PHYS) == 0) - panic("vunmapbuf"); + KASSERT(bp->b_flags & B_PHYS, ("vunmapbuf")); npages = bp->b_npages; pmap_qremove(trunc_page((vm_offset_t)bp->b_data), |