Move VOP_UNLOCK() after setting type to VNON like all other UFS file systems.

This commit is contained in:
hannken 2014-01-21 07:53:38 +00:00
parent c872f7bc2e
commit bbb42956e4

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_vnops.c,v 1.108 2014/01/17 10:55:03 hannken Exp $ */
/* $NetBSD: ext2fs_vnops.c,v 1.109 2014/01/21 07:53:38 hannken Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vnops.c,v 1.108 2014/01/17 10:55:03 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vnops.c,v 1.109 2014/01/21 07:53:38 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -184,8 +184,8 @@ ext2fs_mknod(void *v)
* checked to see if it is an alias of an existing entry in
* the inode cache.
*/
VOP_UNLOCK(*vpp);
(*vpp)->v_type = VNON;
VOP_UNLOCK(*vpp);
vgone(*vpp);
error = VFS_VGET(mp, ino, vpp);
if (error != 0) {