Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ext2fs Move VOP_UNLOCK() after setting type to VNON ...



details:   https://anonhg.NetBSD.org/src/rev/f0e0cc1edcc4
branches:  trunk
changeset: 326157:f0e0cc1edcc4
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Jan 21 07:53:38 2014 +0000

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

diffstat:

 sys/ufs/ext2fs/ext2fs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 96b223ac5f83 -r f0e0cc1edcc4 sys/ufs/ext2fs/ext2fs_vnops.c
--- a/sys/ufs/ext2fs/ext2fs_vnops.c     Tue Jan 21 02:53:30 2014 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vnops.c     Tue Jan 21 07:53:38 2014 +0000
@@ -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 @@
         * checked to see if it is an alias of an existing entry in
         * the inode cache.
         */
+       (*vpp)->v_type = VNON;
        VOP_UNLOCK(*vpp);
-       (*vpp)->v_type = VNON;
        vgone(*vpp);
        error = VFS_VGET(mp, ino, vpp);
        if (error != 0) {



Home | Main Index | Thread Index | Old Index