diff options
author | phk <phk@FreeBSD.org> | 2003-06-15 18:53:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-15 18:53:00 +0000 |
commit | 24cc9156fe9b5c2e779cc33134e9821873057333 (patch) | |
tree | 68a65c9d3593abaee8f4a7c6f0b683e5d30c43fe /sys/gnu | |
parent | 69776c10822e68c24101edbb82aec156257044a9 (diff) | |
download | FreeBSD-src-24cc9156fe9b5c2e779cc33134e9821873057333.zip FreeBSD-src-24cc9156fe9b5c2e779cc33134e9821873057333.tar.gz |
Add the same KASSERT to all VOP_STRATEGY and VOP_SPECSTRATEGY implementations
to check that the buffer points to the correct vnode.
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_vnops.c | 2 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/gnu/ext2fs/ext2_vnops.c b/sys/gnu/ext2fs/ext2_vnops.c index 7f76f7c..43fd210 100644 --- a/sys/gnu/ext2fs/ext2_vnops.c +++ b/sys/gnu/ext2fs/ext2_vnops.c @@ -1461,6 +1461,8 @@ ext2_strategy(ap) int32_t blkno; int error; + KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", + __func__, ap->a_vp, ap->a_bp->b_vp)); ip = VTOI(vp); if (vp->v_type == VBLK || vp->v_type == VCHR) panic("ext2_strategy: spec"); diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index 7f76f7c..43fd210 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -1461,6 +1461,8 @@ ext2_strategy(ap) int32_t blkno; int error; + KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", + __func__, ap->a_vp, ap->a_bp->b_vp)); ip = VTOI(vp); if (vp->v_type == VBLK || vp->v_type == VCHR) panic("ext2_strategy: spec"); |