Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Move variable initialization to the top of lfs_v...
details: https://anonhg.NetBSD.org/src/rev/66c2cce6e22f
branches: trunk
changeset: 467879:66c2cce6e22f
user: perseant <perseant%NetBSD.org@localhost>
date: Tue Mar 30 16:03:16 1999 +0000
description:
Move variable initialization to the top of lfs_vflush
diffstat:
sys/ufs/lfs/lfs_segment.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r b141283415af -r 66c2cce6e22f sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Tue Mar 30 15:13:42 1999 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Tue Mar 30 16:03:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_segment.c,v 1.21 1999/03/29 21:51:38 perseant Exp $ */
+/* $NetBSD: lfs_segment.c,v 1.22 1999/03/30 16:03:16 perseant Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -188,6 +188,9 @@
struct segment *sp;
int error;
+ ip = VTOI(vp);
+ fs = VFSTOUFS(vp->v_mount)->um_lfs;
+
if(ip->i_flag & IN_CLEANING) {
#ifdef DEBUG_LFS
ivndebug(vp,"vflush/in_cleaning");
@@ -208,7 +211,6 @@
}
/* Protect against VXLOCK deadlock in vinvalbuf() */
- fs = VFSTOUFS(vp->v_mount)->um_lfs;
lfs_seglock(fs, SEGM_SYNC);
SET_FLUSHING(fs,vp);
if (fs->lfs_nactive > LFS_MAX_ACTIVE) {
@@ -219,7 +221,6 @@
}
sp = fs->lfs_sp;
- ip = VTOI(vp);
if (vp->v_dirtyblkhd.lh_first == NULL) {
lfs_writevnodes(fs, vp->v_mount, sp, VN_EMPTY);
} else if((ip->i_flag & IN_CLEANING) && (fs->lfs_sp->seg_flags & SEGM_CLEAN)) {
Home |
Main Index |
Thread Index |
Old Index