Don't zero b_dirtyoff and b_dirtyend on error.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
This commit is contained in:
parent
d206682bfd
commit
be4952f1df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25135
@ -33,7 +33,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
|
* @(#)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>
|
#include <sys/param.h>
|
||||||
@ -467,8 +467,8 @@ cluster_callback(bp)
|
|||||||
if (error) {
|
if (error) {
|
||||||
tbp->b_flags |= B_ERROR;
|
tbp->b_flags |= B_ERROR;
|
||||||
tbp->b_error = error;
|
tbp->b_error = error;
|
||||||
}
|
} else
|
||||||
tbp->b_dirtyoff = tbp->b_dirtyend = 0;
|
tbp->b_dirtyoff = tbp->b_dirtyend = 0;
|
||||||
biodone(tbp);
|
biodone(tbp);
|
||||||
}
|
}
|
||||||
relpbuf(bp);
|
relpbuf(bp);
|
||||||
|
Loading…
Reference in New Issue
Block a user