aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-10-20 07:18:27 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-10-20 07:18:27 +0000
commit8ecd87a3e7f5503951d37eab034cb330a1c6ec86 (patch)
tree484e7ba6df66c04efe7fc9733e39bacdaad9c1da /sys/kern/vfs_cache.c
parent5011fb430a898f8ef4f53f4ae2034d029cd388c0 (diff)
downloadsrc-8ecd87a3e7f5503951d37eab034cb330a1c6ec86.tar.gz
src-8ecd87a3e7f5503951d37eab034cb330a1c6ec86.zip
Notes
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 8d73a02b88ba..cf26c36a4081 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2811,7 +2811,7 @@ vn_dd_from_dst(struct vnode *vp)
}
int
-vn_vptocnp(struct vnode **vp, struct ucred *cred, char *buf, size_t *buflen)
+vn_vptocnp(struct vnode **vp, char *buf, size_t *buflen)
{
struct vnode *dvp;
struct namecache *ncp;
@@ -2853,7 +2853,7 @@ vn_vptocnp(struct vnode **vp, struct ucred *cred, char *buf, size_t *buflen)
mtx_unlock(vlp);
vn_lock(*vp, LK_SHARED | LK_RETRY);
- error = VOP_VPTOCNP(*vp, &dvp, cred, buf, buflen);
+ error = VOP_VPTOCNP(*vp, &dvp, buf, buflen);
vput(*vp);
if (error) {
counter_u64_add(numfullpathfail2, 1);
@@ -2952,7 +2952,7 @@ vn_fullpath_dir(struct vnode *vp, struct vnode *rdir, char *buf, char **retbuf,
error, vp, NULL);
break;
}
- error = vn_vptocnp(&vp, curthread->td_ucred, buf, &buflen);
+ error = vn_vptocnp(&vp, buf, &buflen);
if (error)
break;
if (buflen == 0) {
@@ -3151,7 +3151,7 @@ vn_fullpath_any(struct vnode *vp, struct vnode *rdir, char *buf, char **retbuf,
if (vp->v_type != VDIR) {
*buflen -= 1;
buf[*buflen] = '\0';
- error = vn_vptocnp(&vp, curthread->td_ucred, buf, buflen);
+ error = vn_vptocnp(&vp, buf, buflen);
if (error)
return (error);
if (*buflen == 0) {