Module Name: src Committed By: pooka Date: Sun Mar 22 13:38:54 UTC 2009
Modified Files: src/sys/rump/librump/rumpvfs: genfs_io.c Log Message: Remove clearly incorrect constraint: can't compare range against eof if offset != start. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/rump/librump/rumpvfs/genfs_io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpvfs/genfs_io.c diff -u src/sys/rump/librump/rumpvfs/genfs_io.c:1.7 src/sys/rump/librump/rumpvfs/genfs_io.c:1.8 --- src/sys/rump/librump/rumpvfs/genfs_io.c:1.7 Thu Feb 5 19:59:35 2009 +++ src/sys/rump/librump/rumpvfs/genfs_io.c Sun Mar 22 13:38:54 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: genfs_io.c,v 1.7 2009/02/05 19:59:35 pooka Exp $ */ +/* $NetBSD: genfs_io.c,v 1.8 2009/03/22 13:38:54 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.7 2009/02/05 19:59:35 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.8 2009/03/22 13:38:54 pooka Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -362,7 +362,7 @@ mutex_exit(&uobj->vmobjlock); /* then we write */ - for (bufoff = 0; bufoff < MIN(curoff-smallest,eof); bufoff+=xfersize) { + for (bufoff = 0; bufoff < curoff-smallest; bufoff+=xfersize) { struct buf *bp; struct vnode *devvp; daddr_t bn, lbn;