summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/ext2fs/ext2_bmap.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
committerphk <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
commit4c2cb3f397c38a3130cc662b11c357e626595ce7 (patch)
tree55e40771eeea4b5804dfc89816d64f51ad7fe0ec /sys/gnu/fs/ext2fs/ext2_bmap.c
parentd004fc1e31ce0293b51841c13a14ebf6ecc9e6ec (diff)
downloadFreeBSD-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/gnu/fs/ext2fs/ext2_bmap.c')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_bmap.c b/sys/gnu/fs/ext2fs/ext2_bmap.c
index 2b98b5b..03db1b1 100644
--- a/sys/gnu/fs/ext2fs/ext2_bmap.c
+++ b/sys/gnu/fs/ext2fs/ext2_bmap.c
@@ -196,7 +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);
+ bp->b_iooffset = dbtob(bp->b_blkno);
VOP_STRATEGY(bp->b_vp, bp);
curproc->p_stats->p_ru.ru_inblock++; /* XXX */
error = bufwait(bp);
OpenPOWER on IntegriCloud