diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-11 21:53:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-11 21:53:11 +0000 |
commit | 01b932f9a386ec1241e7a51285dfbdeb74ed724f (patch) | |
tree | 2000291f455129b8dfb8a7c7376c84e996473fb6 /sys | |
parent | 3719d82b7f6fdabfa6a4b1f95efac55aa096dd52 (diff) |
if we run out of space, make the dead vnode VNON. if a VBLK gets out, it
causes trouble later. netbsd pr22419
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_vnops.c | 3 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vnops.c b/sys/ufs/ext2fs/ext2fs_vnops.c index 3cd627fa89e..d66ce1b0aa7 100644 --- a/sys/ufs/ext2fs/ext2fs_vnops.c +++ b/sys/ufs/ext2fs/ext2fs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_vnops.c,v 1.27 2003/07/06 09:07:18 tedu Exp $ */ +/* $OpenBSD: ext2fs_vnops.c,v 1.28 2003/08/11 21:53:10 tedu Exp $ */ /* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */ /* @@ -1298,6 +1298,7 @@ bad: vput(dvp); ip->i_e2fs_nlink = 0; ip->i_flag |= IN_CHANGE; + tvp->v_type = VNON; vput(tvp); return (error); } diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index af2edf2d04c..b8f19b895ac 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_vnops.c,v 1.47 2003/06/02 23:28:23 millert Exp $ */ +/* $OpenBSD: ufs_vnops.c,v 1.48 2003/08/11 21:53:10 tedu Exp $ */ /* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */ /* @@ -2143,6 +2143,7 @@ bad: ip->i_flag |= IN_CHANGE; if (DOINGSOFTDEP(tvp)) softdep_change_linkcnt(ip); + tvp->v_type = VNON; vput(tvp); return (error); |