diff options
author | phk <phk@FreeBSD.org> | 2003-10-18 14:10:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-18 14:10:28 +0000 |
commit | 4c2cb3f397c38a3130cc662b11c357e626595ce7 (patch) | |
tree | 55e40771eeea4b5804dfc89816d64f51ad7fe0ec /sys/ufs | |
parent | d004fc1e31ce0293b51841c13a14ebf6ecc9e6ec (diff) | |
download | FreeBSD-src-4c2cb3f397c38a3130cc662b11c357e626595ce7.zip FreeBSD-src-4c2cb3f397c38a3130cc662b11c357e626595ce7.tar.gz |
DuH!
bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in
the file)
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 2 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_bmap.c | 2 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index fa172c5..13183c8 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -565,7 +565,7 @@ ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp) panic("ffs_indirtrunc: bad buffer size"); bp->b_blkno = dbn; vfs_busy_pages(bp, 0); - bp->b_offset = dbtob(bp->b_blkno); + bp->b_iooffset = dbtob(bp->b_blkno); VOP_STRATEGY(bp->b_vp, bp); error = bufwait(bp); } diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c index f2296ea..71e7122 100644 --- a/sys/ufs/ufs/ufs_bmap.c +++ b/sys/ufs/ufs/ufs_bmap.c @@ -228,7 +228,7 @@ ufs_bmaparray(vp, bn, bnp, nbp, runp, runb) bp->b_flags &= ~B_INVAL; bp->b_ioflags &= ~BIO_ERROR; vfs_busy_pages(bp, 0); - bp->b_offset = dbtob(bp->b_blkno); + bp->b_iooffset = 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/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index bf2d378..29e3892 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1969,7 +1969,7 @@ ufs_strategy(ap) } vp = ip->i_devvp; bp->b_dev = vp->v_rdev; - bp->b_offset = dbtob(bp->b_blkno); + bp->b_iooffset = dbtob(bp->b_blkno); VOP_SPECSTRATEGY(vp, bp); return (0); } |