diff options
author | phk <phk@FreeBSD.org> | 2003-10-18 11:13:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-18 11:13:31 +0000 |
commit | bd00da531d31aa9d624805c19878a25c3a40f081 (patch) | |
tree | db8d8f20f85648517dd6f64869763ee4d21ef843 /sys | |
parent | 902030340dd49238fc48826d11d9a1953825a93e (diff) | |
download | FreeBSD-src-bd00da531d31aa9d624805c19878a25c3a40f081.zip FreeBSD-src-bd00da531d31aa9d624805c19878a25c3a40f081.tar.gz |
Initialize bp->b_offset before calling VOP_STRATEGY()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_cluster.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 89de2ef..dd0844f 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -239,6 +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); error = VOP_STRATEGY(vp, bp); curproc->p_stats->p_ru.ru_inblock++; if (error) @@ -293,6 +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); (void) VOP_STRATEGY(vp, rbp); curproc->p_stats->p_ru.ru_inblock++; } |