Module Name: src
Committed By: hannken
Date: Tue Jan 21 07:53:38 UTC 2014
Modified Files:
src/sys/ufs/ext2fs: ext2fs_vnops.c
Log Message:
Move VOP_UNLOCK() after setting type to VNON like all other UFS file systems.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/ufs/ext2fs/ext2fs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ext2fs/ext2fs_vnops.c
diff -u src/sys/ufs/ext2fs/ext2fs_vnops.c:1.108 src/sys/ufs/ext2fs/ext2fs_vnops.c:1.109
--- src/sys/ufs/ext2fs/ext2fs_vnops.c:1.108 Fri Jan 17 10:55:03 2014
+++ src/sys/ufs/ext2fs/ext2fs_vnops.c Tue Jan 21 07:53:38 2014
@@ -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) {