Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs Missing bit in previous commit (prevent race be...



details:   https://anonhg.NetBSD.org/src/rev/0e02def783fd
branches:  trunk
changeset: 780885:0e02def783fd
user:      manu <manu%NetBSD.org@localhost>
date:      Fri Aug 10 14:52:56 2012 +0000

description:
Missing bit in previous commit (prevent race between create|mknod|mkdir|symlink
and reclaim)

diffstat:

 sys/fs/puffs/puffs_vnops.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r b38edc53830b -r 0e02def783fd sys/fs/puffs/puffs_vnops.c
--- a/sys/fs/puffs/puffs_vnops.c        Fri Aug 10 14:52:26 2012 +0000
+++ b/sys/fs/puffs/puffs_vnops.c        Fri Aug 10 14:52:56 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_vnops.c,v 1.172 2012/08/10 08:42:11 manu Exp $   */
+/*     $NetBSD: puffs_vnops.c,v 1.173 2012/08/10 14:52:56 manu Exp $   */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.172 2012/08/10 08:42:11 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.173 2012/08/10 14:52:56 manu Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -761,6 +761,8 @@
                          va_ttl, cn_ttl, SETATTR_CHSIZE);
        }
 
+       VPTOPP(*ap->a_vpp)->pn_nlookup++;
+
  out:
        vput(dvp);
 
@@ -818,6 +820,8 @@
                           va_ttl, cn_ttl, SETATTR_CHSIZE);
        }
 
+       VPTOPP(*ap->a_vpp)->pn_nlookup++;
+
  out:
        vput(dvp);
        PUFFS_MSG_RELEASE(mknod);
@@ -1791,6 +1795,8 @@
                          va_ttl, cn_ttl, SETATTR_CHSIZE);
        }
 
+       VPTOPP(*ap->a_vpp)->pn_nlookup++;
+
  out:
        vput(dvp);
        PUFFS_MSG_RELEASE(mkdir);
@@ -1955,6 +1961,8 @@
                          va_ttl, cn_ttl, SETATTR_CHSIZE);
        }
 
+       VPTOPP(*ap->a_vpp)->pn_nlookup++;
+
  out:
        vput(dvp);
        PUFFS_MSG_RELEASE(symlink);



Home | Main Index | Thread Index | Old Index