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/kern/vfs_cluster.c | |
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/kern/vfs_cluster.c')
-rw-r--r-- | sys/kern/vfs_cluster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index dd0844f..d46ae86 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -239,7 +239,7 @@ cluster_read(vp, filesize, lblkno, size, cred, totread, seqcount, bpp) bp->b_ioflags &= ~BIO_ERROR; if ((bp->b_flags & B_ASYNC) || bp->b_iodone != NULL) BUF_KERNPROC(bp); - bp->b_offset = dbtob(bp->b_blkno); + bp->b_iooffset = dbtob(bp->b_blkno); error = VOP_STRATEGY(vp, bp); curproc->p_stats->p_ru.ru_inblock++; if (error) @@ -294,7 +294,7 @@ cluster_read(vp, filesize, lblkno, size, cred, totread, seqcount, bpp) rbp->b_ioflags &= ~BIO_ERROR; if ((rbp->b_flags & B_ASYNC) || rbp->b_iodone != NULL) BUF_KERNPROC(rbp); - rbp->b_offset = dbtob(rbp->b_blkno); + rbp->b_iooffset = dbtob(rbp->b_blkno); (void) VOP_STRATEGY(vp, rbp); curproc->p_stats->p_ru.ru_inblock++; } |