aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1996-06-25 03:00:44 +0000
committerDavid Greenman <dg@FreeBSD.org>1996-06-25 03:00:44 +0000
commitb9355dedd9a8844d0fd0223d86b09ed28df3de10 (patch)
tree39ddd2b8ca98da829700ece9f87eef21a29b0a61
parentcb87c9be580e7def63aa781a72708653414efe87 (diff)
downloadsrc-b9355dedd9a8844d0fd0223d86b09ed28df3de10.tar.gz
src-b9355dedd9a8844d0fd0223d86b09ed28df3de10.zip
Notes
-rw-r--r--sys/ufs/ufs/ufs_readwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c
index 8edb6a44fc13..ff2c54015728 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,