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/ufs Pull up revision 1.74 (requested by pk):



details:   https://anonhg.NetBSD.org/src/rev/f89412dd0974
branches:  netbsd-1-5
changeset: 489934:f89412dd0974
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 14:15:14 2000 +0000

description:
Pull up revision 1.74 (requested by pk):
  In ufs_makeinode(), set the new vnode type to VNON before
  calling vput().

  Prevents kernel panic when running out of disk space in the
  middle of allocating a new inode on an FFS or LFS file system.

diffstat:

 sys/ufs/ufs/ufs_vnops.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 733bda127518 -r f89412dd0974 sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c   Thu Oct 19 14:14:29 2000 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c   Thu Oct 19 14:15:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_vnops.c,v 1.68.2.2 2000/09/14 18:50:16 perseant Exp $      */
+/*     $NetBSD: ufs_vnops.c,v 1.68.2.3 2000/10/19 14:15:14 he Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993, 1995
@@ -2039,6 +2039,7 @@
 #endif
        if (DOINGSOFTDEP(tvp))
                softdep_change_linkcnt(ip);
+       tvp->v_type = VNON;
        vput(tvp);
        return (error);
 }



Home | Main Index | Thread Index | Old Index