Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/tmpfs PR kern/55268: tmpfs is slow
details: https://anonhg.NetBSD.org/src/rev/c9dc40cfb0fa
branches: trunk
changeset: 932780:c9dc40cfb0fa
user: ad <ad%NetBSD.org@localhost>
date: Fri May 15 22:15:43 2020 +0000
description:
PR kern/55268: tmpfs is slow
Enter dotdot into the namecache.
diffstat:
sys/fs/tmpfs/tmpfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r d1993f2da170 -r c9dc40cfb0fa sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c Fri May 15 21:56:14 2020 +0000
+++ b/sys/fs/tmpfs/tmpfs_vnops.c Fri May 15 22:15:43 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tmpfs_vnops.c,v 1.136 2020/04/23 21:47:08 ad Exp $ */
+/* $NetBSD: tmpfs_vnops.c,v 1.137 2020/05/15 22:15:43 ad Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.136 2020/04/23 21:47:08 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.137 2020/05/15 22:15:43 ad Exp $");
#include <sys/param.h>
#include <sys/dirent.h>
@@ -202,11 +202,11 @@
pnode = dnode->tn_spec.tn_dir.tn_parent;
if (pnode == NULL) {
error = ENOENT;
- goto out;
+ goto done;
}
error = vcache_get(dvp->v_mount, &pnode, sizeof(pnode), vpp);
- goto out;
+ goto done;
} else if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
/*
* Lookup of "." case.
Home |
Main Index |
Thread Index |
Old Index