Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs No need to call vgone() on the just created in f...



details:   https://anonhg.NetBSD.org/src/rev/a8816612e4c8
branches:  trunk
changeset: 353925:a8816612e4c8
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sun May 28 16:37:55 2017 +0000

description:
No need to call vgone() on the just created in file system log vnode,
vput() is sufficient.

diffstat:

 sys/ufs/ffs/ffs_wapbl.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r f988ec31b6b7 -r a8816612e4c8 sys/ufs/ffs/ffs_wapbl.c
--- a/sys/ufs/ffs/ffs_wapbl.c   Sun May 28 16:37:16 2017 +0000
+++ b/sys/ufs/ffs/ffs_wapbl.c   Sun May 28 16:37:55 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_wapbl.c,v 1.40 2017/03/22 21:30:59 jdolecek Exp $  */
+/*     $NetBSD: ffs_wapbl.c,v 1.41 2017/05/28 16:37:55 hannken Exp $   */
 
 /*-
  * Copyright (c) 2003,2006,2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_wapbl.c,v 1.40 2017/03/22 21:30:59 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_wapbl.c,v 1.41 2017/05/28 16:37:55 hannken Exp $");
 
 #define WAPBL_INTERNAL
 
@@ -686,8 +686,7 @@
                 */
                ip->i_nlink = 0;
                DIP_ASSIGN(ip, nlink, 0);
-               VOP_UNLOCK(vp);
-               vgone(vp);
+               vput(vp);
 
                return error;
        }
@@ -696,8 +695,7 @@
         * Now that we have the place-holder inode for the journal,
         * we don't need the vnode ever again.
         */
-       VOP_UNLOCK(vp);
-       vgone(vp);
+       vput(vp);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index