diff options
author | phk <phk@FreeBSD.org> | 2003-10-18 11:08:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-18 11:08:04 +0000 |
commit | bd34a4ab189d192d53549e416a9c37d08928db72 (patch) | |
tree | 4f0a2b4b2eb0384a5faba30e35a64cdd816b6ed2 /sys | |
parent | 7279dea9d58cab07cda558d87a324cf930c1d69d (diff) | |
download | FreeBSD-src-bd34a4ab189d192d53549e416a9c37d08928db72.zip FreeBSD-src-bd34a4ab189d192d53549e416a9c37d08928db72.tar.gz |
Initialize bp->b_offset before calling VOP_[SPEC]STRATEGY()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/gnu/ext2fs/ext2_bmap.c | 1 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_inode.c | 1 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_vnops.c | 1 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_bmap.c | 1 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_inode.c | 1 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/sys/gnu/ext2fs/ext2_bmap.c b/sys/gnu/ext2fs/ext2_bmap.c index 1260d97f..2b98b5b 100644 --- a/sys/gnu/ext2fs/ext2_bmap.c +++ b/sys/gnu/ext2fs/ext2_bmap.c @@ -196,6 +196,7 @@ ext2_bmaparray(vp, bn, bnp, runp, runb) bp->b_flags &= ~B_INVAL; bp->b_ioflags &= ~BIO_ERROR; vfs_busy_pages(bp, 0); + bp->b_offset = dbtob(bp->b_blkno); VOP_STRATEGY(bp->b_vp, bp); curproc->p_stats->p_ru.ru_inblock++; /* XXX */ error = bufwait(bp); diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c index c82711a..8bd0b39 100644 --- a/sys/gnu/ext2fs/ext2_inode.c +++ b/sys/gnu/ext2fs/ext2_inode.c @@ -404,6 +404,7 @@ ext2_indirtrunc(ip, lbn, dbn, lastbn, level, countp) panic("ext2_indirtrunc: bad buffer size"); bp->b_blkno = dbn; vfs_busy_pages(bp, 0); + bp->b_offset = dbtob(bp->b_blkno); VOP_STRATEGY(vp, bp); error = bufwait(bp); } diff --git a/sys/gnu/ext2fs/ext2_vnops.c b/sys/gnu/ext2fs/ext2_vnops.c index 43fd210..46c292b 100644 --- a/sys/gnu/ext2fs/ext2_vnops.c +++ b/sys/gnu/ext2fs/ext2_vnops.c @@ -1484,6 +1484,7 @@ ext2_strategy(ap) } vp = ip->i_devvp; bp->b_dev = vp->v_rdev; + bp->b_offset = dbtob(bp->b_blkno); VOP_SPECSTRATEGY(vp, bp); return (0); } diff --git a/sys/gnu/fs/ext2fs/ext2_bmap.c b/sys/gnu/fs/ext2fs/ext2_bmap.c index 1260d97f..2b98b5b 100644 --- a/sys/gnu/fs/ext2fs/ext2_bmap.c +++ b/sys/gnu/fs/ext2fs/ext2_bmap.c @@ -196,6 +196,7 @@ ext2_bmaparray(vp, bn, bnp, runp, runb) bp->b_flags &= ~B_INVAL; bp->b_ioflags &= ~BIO_ERROR; vfs_busy_pages(bp, 0); + bp->b_offset = dbtob(bp->b_blkno); VOP_STRATEGY(bp->b_vp, bp); curproc->p_stats->p_ru.ru_inblock++; /* XXX */ error = bufwait(bp); diff --git a/sys/gnu/fs/ext2fs/ext2_inode.c b/sys/gnu/fs/ext2fs/ext2_inode.c index c82711a..8bd0b39 100644 --- a/sys/gnu/fs/ext2fs/ext2_inode.c +++ b/sys/gnu/fs/ext2fs/ext2_inode.c @@ -404,6 +404,7 @@ ext2_indirtrunc(ip, lbn, dbn, lastbn, level, countp) panic("ext2_indirtrunc: bad buffer size"); bp->b_blkno = dbn; vfs_busy_pages(bp, 0); + bp->b_offset = dbtob(bp->b_blkno); VOP_STRATEGY(vp, bp); error = bufwait(bp); } diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index 43fd210..46c292b 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -1484,6 +1484,7 @@ ext2_strategy(ap) } vp = ip->i_devvp; bp->b_dev = vp->v_rdev; + bp->b_offset = dbtob(bp->b_blkno); VOP_SPECSTRATEGY(vp, bp); return (0); } |