Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs when inactivating segments, compare segment numb...



details:   https://anonhg.NetBSD.org/src/rev/ce5f23a78396
branches:  trunk
changeset: 552792:ce5f23a78396
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Oct 03 13:02:54 2003 +0000

description:
when inactivating segments, compare segment numbers correctly.

diffstat:

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

diffs (27 lines):

diff -r 0f8bd3fa95e1 -r ce5f23a78396 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Fri Oct 03 12:23:22 2003 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Fri Oct 03 13:02:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.133 2003/09/29 15:12:08 yamt Exp $   */
+/*     $NetBSD: lfs_segment.c,v 1.134 2003/10/03 13:02:54 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.133 2003/09/29 15:12:08 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.134 2003/10/03 13:02:54 yamt Exp $");
 
 #define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str))
 
@@ -601,7 +601,7 @@
                        maxseg = min(segleft, fs->lfs_sepb);
                        for (i = 0; i < maxseg; i++) {
                                sn = curseg + i;
-                               if (sn != fs->lfs_curseg &&
+                               if (sn != dtosn(fs, fs->lfs_curseg) &&
                                    segusep->su_flags & SEGUSE_ACTIVE) {
                                        segusep->su_flags &= ~SEGUSE_ACTIVE;
                                        --fs->lfs_nactive;



Home | Main Index | Thread Index | Old Index