Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs remove NCHNAMLEN optimization
details: https://anonhg.NetBSD.org/src/rev/6f1310cfd03e
branches: trunk
changeset: 454228:6f1310cfd03e
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 10 23:19:34 2019 +0000
description:
remove NCHNAMLEN optimization
diffstat:
sys/nfs/nfs_vnops.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 8922cd95a26f -r 6f1310cfd03e sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c Tue Sep 10 22:34:19 2019 +0000
+++ b/sys/nfs/nfs_vnops.c Tue Sep 10 23:19:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_vnops.c,v 1.311 2018/09/03 16:29:36 riastradh Exp $ */
+/* $NetBSD: nfs_vnops.c,v 1.312 2019/09/10 23:19:34 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.311 2018/09/03 16:29:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.312 2019/09/10 23:19:34 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_nfs.h"
@@ -2778,11 +2778,9 @@
if (bigenough) {
dp->d_type =
IFTODT(VTTOIF(np->n_vattr->va_type));
- if (cnp->cn_namelen <= NCHNAMLEN) {
- ndp->ni_vp = newvp;
- nfs_cache_enter(ndp->ni_dvp,
- ndp->ni_vp, cnp);
- }
+ ndp->ni_vp = newvp;
+ nfs_cache_enter(ndp->ni_dvp,
+ ndp->ni_vp, cnp);
}
}
error = 0;
Home |
Main Index |
Thread Index |
Old Index