Module Name:    src
Committed By:   riastradh
Date:           Thu Sep 27 17:40:51 UTC 2012

Modified Files:
        src/sys/fs/tmpfs: tmpfs_rename.c

Log Message:
Uncomment call to genfs_rename_cache_purge.

Fixes a side issue mentioned in PR kern/46990.

I left this commented to preserve the old behaviour of tmpfs_rename,
but it is obviously broken to omit the cache purge, and I'm surprised
nobody had encountered any problems with it until now.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/fs/tmpfs/tmpfs_rename.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/tmpfs/tmpfs_rename.c
diff -u src/sys/fs/tmpfs/tmpfs_rename.c:1.3 src/sys/fs/tmpfs/tmpfs_rename.c:1.4
--- src/sys/fs/tmpfs/tmpfs_rename.c:1.3	Tue Sep 25 16:11:42 2012
+++ src/sys/fs/tmpfs/tmpfs_rename.c	Thu Sep 27 17:40:51 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: tmpfs_rename.c,v 1.3 2012/09/25 16:11:42 riastradh Exp $	*/
+/*	$NetBSD: tmpfs_rename.c,v 1.4 2012/09/27 17:40:51 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_rename.c,v 1.3 2012/09/25 16:11:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_rename.c,v 1.4 2012/09/27 17:40:51 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -375,9 +375,7 @@ tmpfs_gro_rename(struct mount *mp, kauth
 
 	VN_KNOTE(fvp, NOTE_RENAME);
 
-#if 0				/* XXX */
 	genfs_rename_cache_purge(fdvp, fvp, tdvp, tvp);
-#endif
 
 	return 0;
 }

Reply via email to