Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/tmpfs Uncomment call to genfs_rename_cache_purge.



details:   https://anonhg.NetBSD.org/src/rev/5890847591b0
branches:  trunk
changeset: 781752:5890847591b0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Sep 27 17:40:51 2012 +0000

description:
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.

diffstat:

 sys/fs/tmpfs/tmpfs_rename.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 478b1ba475f9 -r 5890847591b0 sys/fs/tmpfs/tmpfs_rename.c
--- a/sys/fs/tmpfs/tmpfs_rename.c       Thu Sep 27 16:55:08 2012 +0000
+++ b/sys/fs/tmpfs/tmpfs_rename.c       Thu Sep 27 17:40:51 2012 +0000
@@ -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 @@
 
        VN_KNOTE(fvp, NOTE_RENAME);
 
-#if 0                          /* XXX */
        genfs_rename_cache_purge(fdvp, fvp, tdvp, tvp);
-#endif
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index