Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ufs ufs_rmdir(): move fstrans_done() after vput(). ...



details:   https://anonhg.NetBSD.org/src/rev/d69f999ba013
branches:  trunk
changeset: 748114:d69f999ba013
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Oct 14 09:40:27 2009 +0000

description:
ufs_rmdir(): move fstrans_done() after vput().  No more unlinked and
zero-sized directory inodes in snapshots.

diffstat:

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

diffs (29 lines):

diff -r 94fe725759b1 -r d69f999ba013 sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c   Wed Oct 14 07:30:47 2009 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c   Wed Oct 14 09:40:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_vnops.c,v 1.179 2009/07/03 21:17:42 elad Exp $     */
+/*     $NetBSD: ufs_vnops.c,v 1.180 2009/10/14 09:40:27 hannken 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.179 2009/07/03 21:17:42 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.180 2009/10/14 09:40:27 hannken Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1590,9 +1590,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