diff options
author | dfr <dfr@FreeBSD.org> | 1997-04-25 11:14:00 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1997-04-25 11:14:00 +0000 |
commit | d127247cc9c61567e026ba9df630246841923b37 (patch) | |
tree | 9ec8fbc8dadff300ff1900c4480a069ea060ff98 /sys/kern/vfs_cluster.c | |
parent | 90e3a3c005c783eaf0a78b91f30aaef0f9e9fe32 (diff) | |
download | FreeBSD-src-d127247cc9c61567e026ba9df630246841923b37.zip FreeBSD-src-d127247cc9c61567e026ba9df630246841923b37.tar.gz |
Don't zero b_dirtyoff and b_dirtyend on error.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r-- | sys/kern/vfs_cluster.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 3a26e17..740cc2c 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -33,7 +33,7 @@ * SUCH DAMAGE. * * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94 - * $Id: vfs_cluster.c,v 1.44 1997/04/01 11:48:30 bde Exp $ + * $Id: vfs_cluster.c,v 1.45 1997/04/18 14:12:17 dfr Exp $ */ #include <sys/param.h> @@ -467,8 +467,8 @@ cluster_callback(bp) if (error) { tbp->b_flags |= B_ERROR; tbp->b_error = error; - } - tbp->b_dirtyoff = tbp->b_dirtyend = 0; + } else + tbp->b_dirtyoff = tbp->b_dirtyend = 0; biodone(tbp); } relpbuf(bp); |