Remove KASSERTS on B_PHYS for vmapbuf() and vunmapbuf(), B_PHYS is going
away.
This commit is contained in:
parent
e3a7fe7a9e
commit
68b00bf648
@ -3693,7 +3693,6 @@ vmapbuf(struct buf *bp)
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
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 :
|
||||
@ -3748,8 +3747,6 @@ vunmapbuf(struct buf *bp)
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
KASSERT(bp->b_flags & B_PHYS, ("vunmapbuf"));
|
||||
|
||||
npages = bp->b_npages;
|
||||
pmap_qremove(trunc_page((vm_offset_t)bp->b_data),
|
||||
npages);
|
||||
|
Loading…
Reference in New Issue
Block a user