diff options
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 4ecec3c..42dfc56 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3420,8 +3420,8 @@ softdep_disk_prewrite(struct vnode *vp, struct buf *bp) { int error; - if (bp->b_iocmd != BIO_WRITE) - return (0); + KASSERT(bp->b_iocmd == BIO_WRITE, + ("softdep_disk_prewrite on non-BIO_WRITE buffer")); if ((bp->b_flags & B_VALIDSUSPWRT) == 0 && bp->b_vp != NULL && bp->b_vp->v_mount != NULL && (bp->b_vp->v_mount->mnt_kern_flag & MNTK_SUSPENDED) != 0) |