Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/ufs/lfs pull up active current segment patch from t...



details:   https://anonhg.NetBSD.org/src/rev/bed122865cdb
branches:  netbsd-1-5
changeset: 488318:bed122865cdb
user:      perseant <perseant%NetBSD.org@localhost>
date:      Wed Jun 28 22:28:53 2000 +0000

description:
pull up active current segment patch from trunk

diffstat:

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

diffs (23 lines):

diff -r 14d52664dc8a -r bed122865cdb sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Wed Jun 28 22:27:22 2000 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Wed Jun 28 22:28:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.49.2.1 2000/06/22 20:26:19 perseant Exp $    */
+/*     $NetBSD: lfs_segment.c,v 1.49.2.2 2000/06/28 22:28:53 perseant Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -562,8 +562,11 @@
                                segusep->su_flags &= ~SEGUSE_ACTIVE;
                                
                        /* But the current segment is still ACTIVE */
-                       if (fs->lfs_curseg/fs->lfs_sepb==(ibno-fs->lfs_cleansz))
-                               ((SEGUSE *)(bp->b_data))[fs->lfs_curseg%fs->lfs_sepb].su_flags |= SEGUSE_ACTIVE;
+                       segusep = (SEGUSE *)bp->b_data;
+                       if (datosn(fs, fs->lfs_curseg) / fs->lfs_sepb ==
+                           (ibno-fs->lfs_cleansz))
+                               segusep[datosn(fs, fs->lfs_curseg) %
+                                       fs->lfs_sepb].su_flags |= SEGUSE_ACTIVE;
                        error = VOP_BWRITE(bp);
                }
        }



Home | Main Index | Thread Index | Old Index