Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs From John Evans <jevans%cray.com@localhost>: use datosn() ...



details:   https://anonhg.NetBSD.org/src/rev/c0457dcbeb60
branches:  trunk
changeset: 493947:c0457dcbeb60
user:      perseant <perseant%NetBSD.org@localhost>
date:      Tue Jun 27 20:00:03 2000 +0000

description:
>From John Evans <jevans%cray.com@localhost>: use datosn() to convert to segment
number, when remarking the current segment ACTIVE.  See PR #10463.

diffstat:

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

diffs (23 lines):

diff -r 97f4a9d6f79f -r c0457dcbeb60 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Tue Jun 27 18:57:41 2000 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Tue Jun 27 20:00:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.50 2000/06/22 18:11:45 perseant Exp $        */
+/*     $NetBSD: lfs_segment.c,v 1.51 2000/06/27 20:00:03 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