From c122326822991b6e8ab7272442674a7a435f83e1 Mon Sep 17 00:00:00 2001 From: hannken Date: Fri, 27 Dec 2002 16:07:13 +0000 Subject: [PATCH] Clear IN_SPACECOUNTED on (re-)used inodes. This cures the "unmount pending error:" on softdep umounts. Approved by: Frank van der Linden --- sys/ufs/ffs/ffs_alloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 5867586c43ad..bd4b2078fd92 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -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 -__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 @@ ffs_valloc(v) 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.