From 25763ae2a70bd8fef2d463eaedb44cdeda24bb8a Mon Sep 17 00:00:00 2001 From: scottl Date: Sat, 29 Oct 2005 06:38:13 +0000 Subject: [PATCH] MFC rev 1.136 and 1.137 Submitted by: tegge Approved by: re --- sys/ufs/ffs/ffs_alloc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 88f428e9b908..dc0f263b35d3 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -951,6 +951,12 @@ ffs_valloc(pvp, mode, cred, vpp) ip->i_din2->di_birthnsec = ts.tv_nsec; } ip->i_flag = 0; + vnode_destroy_vobject(*vpp); + (*vpp)->v_type = VNON; + if (fs->fs_magic == FS_UFS2_MAGIC) + (*vpp)->v_op = &ffs_vnodeops2; + else + (*vpp)->v_op = &ffs_vnodeops1; return (0); noinodes: UFS_UNLOCK(ump);