diff options
author | dg <dg@FreeBSD.org> | 1996-06-25 03:00:44 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-06-25 03:00:44 +0000 |
commit | d82864f5a76e87a129b2fed0cec440ac52cc4ced (patch) | |
tree | 39ddd2b8ca98da829700ece9f87eef21a29b0a61 | |
parent | 63f9541399456ee7de078c0690f32d41c4e0da5f (diff) | |
download | FreeBSD-src-d82864f5a76e87a129b2fed0cec440ac52cc4ced.zip FreeBSD-src-d82864f5a76e87a129b2fed0cec440ac52cc4ced.tar.gz |
Fixed end condition for clustered reads.
Submitted by: Kirk McKusick via Lite-2 and email
-rw-r--r-- | sys/ufs/ufs/ufs_readwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index 8edb6a4..ff2c540 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_readwrite.c 8.7 (Berkeley) 1/21/94 - * $Id: ufs_readwrite.c,v 1.19 1996/01/07 09:42:36 phk Exp $ + * $Id: ufs_readwrite.c,v 1.20 1996/01/19 03:59:26 dyson Exp $ */ #ifdef LFS_READWRITE @@ -118,7 +118,7 @@ READ(ap) (void)lfs_check(vp, lbn); error = cluster_read(vp, ip->i_size, lbn, size, NOCRED, &bp); #else - if (lblktosize(fs, nextlbn) > ip->i_size) + if (lblktosize(fs, nextlbn) >= ip->i_size) error = bread(vp, lbn, size, NOCRED, &bp); else if (doclusterread) error = cluster_read(vp, |