diff options
author | Tor Egge <tegge@FreeBSD.org> | 2005-10-09 21:11:25 +0000 |
---|---|---|
committer | Tor Egge <tegge@FreeBSD.org> | 2005-10-09 21:11:25 +0000 |
commit | 4e0cd00988f588b83da290c98ef14a5812412386 (patch) | |
tree | f5ae05b5db766fde42636ac0a50da929f6255a36 /sys | |
parent | 96ca84d197222ce74ee4147712464994d0cc90b2 (diff) | |
download | src-4e0cd00988f588b83da290c98ef14a5812412386.tar.gz src-4e0cd00988f588b83da290c98ef14a5812412386.zip |
Adjust totread argument passed to cluster_read() to account for offset not
being block aligned.
Notes
Notes:
svn path=/head/; revision=151184
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index c7808f0dc72f..e631db625f34 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -454,7 +454,7 @@ ffs_read(ap) * doing sequential access. */ error = cluster_read(vp, ip->i_size, lbn, - size, NOCRED, uio->uio_resid, seqcount, &bp); + size, NOCRED, blkoffset + uio->uio_resid, seqcount, &bp); } else if (seqcount > 1) { /* * If we are NOT allowed to cluster, then |