svn commit: r330402 - stable/11/sys/fs/nullfs

Eitan Adler eadler at FreeBSD.org
Sun Mar 4 19:17:33 UTC 2018


Author: eadler
Date: Sun Mar  4 19:17:32 2018
New Revision: 330402
URL: https://svnweb.freebsd.org/changeset/base/330402

Log:
  MFC r305504:
  
  nullfs: stop special-casing directories in null_vptocnp
  
  The previous code was forcing an expensive walk in vop_stdvptocnp,
  which was causing performance issues on highly contended zfs.

Modified:
  stable/11/sys/fs/nullfs/null_vnops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/nullfs/null_vnops.c
==============================================================================
--- stable/11/sys/fs/nullfs/null_vnops.c	Sun Mar  4 19:15:24 2018	(r330401)
+++ stable/11/sys/fs/nullfs/null_vnops.c	Sun Mar  4 19:17:32 2018	(r330402)
@@ -870,9 +870,6 @@ null_vptocnp(struct vop_vptocnp_args *ap)
 	struct ucred *cred = ap->a_cred;
 	int error, locked;
 
-	if (vp->v_type == VDIR)
-		return (vop_stdvptocnp(ap));
-
 	locked = VOP_ISLOCKED(vp);
 	lvp = NULLVPTOLOWERVP(vp);
 	vhold(lvp);


More information about the svn-src-all mailing list