1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

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.

No objections:	kib
MFC after:	2 weeks
This commit is contained in:
Mateusz Guzik 2016-09-06 21:22:03 +00:00
parent 0fbb017195
commit 2740551545
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305504

View File

@ -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);