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 revision 1.59 (requested by perseant):
details: https://anonhg.NetBSD.org/src/rev/f8441568f9f0
branches: netbsd-1-5
changeset: 490631:f8441568f9f0
user: he <he%NetBSD.org@localhost>
date: Sat Feb 03 21:55:41 2001 +0000
description:
Pull up revision 1.59 (requested by perseant):
o Initialize cleaner info from superblock, making fsck_lfs'
accounting of lfs_nclean work.
diffstat:
sys/ufs/lfs/lfs_vfsops.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r e68c30eeefb0 -r f8441568f9f0 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c Sat Feb 03 21:54:29 2001 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c Sat Feb 03 21:55:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vfsops.c,v 1.52.4.2 2000/09/14 18:50:20 perseant Exp $ */
+/* $NetBSD: lfs_vfsops.c,v 1.52.4.3 2001/02/03 21:55:41 he Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -339,6 +339,7 @@
dev_t dev;
int error, i, ronly, size;
struct ucred *cred;
+ CLEANERINFO *cip;
SEGUSE *sup;
cred = p ? p->p_ucred : NOCRED;
@@ -477,12 +478,23 @@
vput(vp);
/*
+ * Initialize the ifile cleaner info with information from
+ * the superblock.
+ */
+ LFS_CLEANERINFO(cip, fs, bp);
+ cip->clean = fs->lfs_nclean;
+ cip->dirty = fs->lfs_nseg - fs->lfs_nclean;
+ cip->avail = fs->lfs_avail;
+ cip->bfree = fs->lfs_bfree;
+ (void) VOP_BWRITE(bp); /* Ifile */
+
+ /*
* Mark the current segment as ACTIVE, since we're going to
* be writing to it.
*/
LFS_SEGENTRY(sup, fs, datosn(fs, fs->lfs_offset), bp);
sup->su_flags |= SEGUSE_DIRTY | SEGUSE_ACTIVE;
- (void) VOP_BWRITE(bp);
+ (void) VOP_BWRITE(bp); /* Ifile */
return (0);
out:
Home |
Main Index |
Thread Index |
Old Index