Fix VN_OPEN_INVFS typo

The VN_OPEN_INVFS literal is in the wrong field.

Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: yparitcher <y@paritcher.com>
Closes #10322
This commit is contained in:
yparitcher 2020-05-14 22:47:14 -05:00 committed by GitHub
parent 2ade659eb4
commit cdcce2f019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5941,7 +5941,7 @@ zfs_getextattr(struct vop_getextattr_args *ap)
flags = FREAD;
NDINIT_ATVP(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, attrname,
xvp, td);
error = vn_open_cred(&nd, &flags, VN_OPEN_INVFS, 0, ap->a_cred, NULL);
error = vn_open_cred(&nd, &flags, 0, VN_OPEN_INVFS, ap->a_cred, NULL);
vp = nd.ni_vp;
NDFREE(&nd, NDF_ONLY_PNBUF);
if (error != 0) {