From 33feb8e68653bcb2019508fd37a65ec0d0d6ee74 Mon Sep 17 00:00:00 2001 From: yamt Date: Fri, 3 Oct 2003 15:35:03 +0000 Subject: [PATCH] reassignbuf() when lfs_writeseg() takes away B_DELWRI. --- sys/ufs/lfs/lfs_segment.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/ufs/lfs/lfs_segment.c b/sys/ufs/lfs/lfs_segment.c index 25822a24ffdd..ec470c1634df 100644 --- a/sys/ufs/lfs/lfs_segment.c +++ b/sys/ufs/lfs/lfs_segment.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_segment.c,v 1.134 2003/10/03 13:02:54 yamt Exp $ */ +/* $NetBSD: lfs_segment.c,v 1.135 2003/10/03 15:35:03 yamt Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.134 2003/10/03 13:02:54 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.135 2003/10/03 15:35:03 yamt Exp $"); #define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str)) @@ -1976,6 +1976,7 @@ lfs_writeseg(struct lfs *fs, struct segment *sp) cl->bpp[cl->bufcount++] = bp; vp = bp->b_vp; s = splbio(); + reassignbuf(bp, vp); V_INCR_NUMOUTPUT(vp); splx(s);