Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Clear IN_SPACECOUNTED on (re-)used inodes.
details: https://anonhg.NetBSD.org/src/rev/5ce347c77375
branches: trunk
changeset: 540886:5ce347c77375
user: hannken <hannken%NetBSD.org@localhost>
date: Fri Dec 27 16:07:13 2002 +0000
description:
Clear IN_SPACECOUNTED on (re-)used inodes.
This cures the "unmount pending error:" on softdep umounts.
Approved by: Frank van der Linden <fvdl%netbsd.org@localhost>
diffstat:
sys/ufs/ffs/ffs_alloc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 64ff714d2324 -r 5ce347c77375 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c Fri Dec 27 15:47:27 2002 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c Fri Dec 27 16:07:13 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_alloc.c,v 1.56 2002/09/27 15:38:03 provos Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.57 2002/12/27 16:07:13 hannken Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.56 2002/09/27 15:38:03 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.57 2002/12/27 16:07:13 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -691,6 +691,7 @@
fs->fs_fsmnt, ino, ip->i_ffs_blocks);
ip->i_ffs_blocks = 0;
}
+ ip->i_flag &= ~IN_SPACECOUNTED;
ip->i_ffs_flags = 0;
/*
* Set up a new generation number for this inode.
Home |
Main Index |
Thread Index |
Old Index