Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs reassignbuf() when lfs_writeseg() takes away B_D...



details:   https://anonhg.NetBSD.org/src/rev/e7479a95bc7b
branches:  trunk
changeset: 552802:e7479a95bc7b
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Oct 03 15:35:03 2003 +0000

description:
reassignbuf() when lfs_writeseg() takes away B_DELWRI.

diffstat:

 sys/ufs/lfs/lfs_segment.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5e546ea0d147 -r e7479a95bc7b sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Fri Oct 03 15:33:42 2003 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Fri Oct 03 15:35:03 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
                        cl->bpp[cl->bufcount++] = bp;
                        vp = bp->b_vp;
                        s = splbio();
+                       reassignbuf(bp, vp);
                        V_INCR_NUMOUTPUT(vp);
                        splx(s);
 



Home | Main Index | Thread Index | Old Index