Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ufs At the end of ufs_rmdir, don't use a dangling vn...



details:   https://anonhg.NetBSD.org/src/rev/bc7146526707
branches:  trunk
changeset: 767383:bc7146526707
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Jul 17 22:02:26 2011 +0000

description:
At the end of ufs_rmdir, don't use a dangling vnode pointer to call
fstrans_done. Ok hannken@

diffstat:

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

diffs (29 lines):

diff -r 50fa8e726966 -r bc7146526707 sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c   Sun Jul 17 22:00:38 2011 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c   Sun Jul 17 22:02:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_vnops.c,v 1.194 2011/07/17 22:00:38 dholland Exp $ */
+/*     $NetBSD: ufs_vnops.c,v 1.195 2011/07/17 22:02:26 dholland Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.194 2011/07/17 22:00:38 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.195 2011/07/17 22:02:26 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1627,9 +1627,9 @@
 #endif
  out:
        VN_KNOTE(vp, NOTE_DELETE);
+       fstrans_done(dvp->v_mount);
        vput(dvp);
        vput(vp);
-       fstrans_done(dvp->v_mount);
        return (error);
 }
 



Home | Main Index | Thread Index | Old Index