diff options
author | phk <phk@FreeBSD.org> | 2004-10-27 06:48:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-27 06:48:21 +0000 |
commit | f3795e5212484aa4f59911ad7498e0d0d27e6275 (patch) | |
tree | 59e4b9cc1138a6536a4c0b9b13ba5009fc6189c9 /sys/fs/ntfs | |
parent | e5378319aa408712dac3cd6643d8b4f8008cbed2 (diff) | |
download | FreeBSD-src-f3795e5212484aa4f59911ad7498e0d0d27e6275.zip FreeBSD-src-f3795e5212484aa4f59911ad7498e0d0d27e6275.tar.gz |
Eliminate unnecessary KASSERTs.
Don't use bp->b_vp in VOP_STRATEGY: the vnode is passed in as an argument.
Diffstat (limited to 'sys/fs/ntfs')
-rw-r--r-- | sys/fs/ntfs/ntfs_vnops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/ntfs/ntfs_vnops.c b/sys/fs/ntfs/ntfs_vnops.c index 1ee98a5..8a8f422 100644 --- a/sys/fs/ntfs/ntfs_vnops.c +++ b/sys/fs/ntfs/ntfs_vnops.c @@ -270,14 +270,12 @@ ntfs_strategy(ap) } */ *ap; { register struct buf *bp = ap->a_bp; - register struct vnode *vp = bp->b_vp; + register struct vnode *vp = ap->a_vp; register struct fnode *fp = VTOF(vp); register struct ntnode *ip = FTONT(fp); struct ntfsmount *ntmp = ip->i_mp; int error; - KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", - __func__, ap->a_vp, ap->a_bp->b_vp)); dprintf(("ntfs_strategy: offset: %d, blkno: %d, lblkno: %d\n", (u_int32_t)bp->b_offset,(u_int32_t)bp->b_blkno, (u_int32_t)bp->b_lblkno)); |