diff options
author | jhb <jhb@FreeBSD.org> | 2004-04-06 19:20:24 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-04-06 19:20:24 +0000 |
commit | ea51c85889c87bee9a2f04595f5bf31476c85df4 (patch) | |
tree | 14fb736cd2fcec05f088670e47c356f3c4098c6b /sys/ufs | |
parent | 241908535b89498ae28f2dea48ae631b01dc6d28 (diff) | |
download | FreeBSD-src-ea51c85889c87bee9a2f04595f5bf31476c85df4.zip FreeBSD-src-ea51c85889c87bee9a2f04595f5bf31476c85df4.tar.gz |
Fix a paste-o from the buf_prewrite() cleanup commit and check for the
MNTK_SUSPEND flag on the correct vnode pointer in softdep_disk_prewrite().
Reviewed by: phk
Tested by: kensmith
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 10be8b2..785f430 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3424,7 +3424,7 @@ softdep_disk_prewrite(struct vnode *vp, struct buf *bp) return (0); if ((bp->b_flags & B_VALIDSUSPWRT) == 0 && bp->b_vp != NULL && bp->b_vp->v_mount != NULL && - (vp->v_mount->mnt_kern_flag & MNTK_SUSPENDED) != 0) + (bp->b_vp->v_mount->mnt_kern_flag & MNTK_SUSPENDED) != 0) panic("softdep_disk_prewrite: bad I/O"); bp->b_flags &= ~B_VALIDSUSPWRT; if (LIST_FIRST(&bp->b_dep) != NULL) |