aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-10-01 22:25:39 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-10-11 13:22:32 +0000
commit2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3 (patch)
tree85d502dfebd0668ab24a08484331b83a19479471 /sys/kern/vfs_syscalls.c
parentb4a58fbf640409a1e507d9f7b411c83a3f83a2f3 (diff)
downloadsrc-2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3.tar.gz
src-2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3.zip
vfs: remove thread argument from VOP_STAT
and fo_stat.
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 82a8125ece95..29a6b34d083a 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1924,7 +1924,7 @@ restart:
if (vp->v_type == VDIR && oldinum == 0) {
error = EPERM; /* POSIX */
} else if (oldinum != 0 &&
- ((error = VOP_STAT(vp, &sb, td->td_ucred, NOCRED, td)) == 0) &&
+ ((error = VOP_STAT(vp, &sb, td->td_ucred, NOCRED)) == 0) &&
sb.st_ino != oldinum) {
error = EIDRM; /* Identifier removed */
} else if (fp != NULL && fp->f_vnode != vp) {
@@ -2444,7 +2444,7 @@ kern_statat(struct thread *td, int flag, int fd, const char *path,
error = kern_fstat(td, fd, sbp);
return (error);
}
- error = VOP_STAT(nd.ni_vp, sbp, td->td_ucred, NOCRED, td);
+ error = VOP_STAT(nd.ni_vp, sbp, td->td_ucred, NOCRED);
if (error == 0) {
if (__predict_false(hook != NULL))
hook(nd.ni_vp, sbp);
@@ -4663,7 +4663,7 @@ kern_fhstat(struct thread *td, struct fhandle fh, struct stat *sb)
vfs_unbusy(mp);
if (error != 0)
return (error);
- error = VOP_STAT(vp, sb, td->td_ucred, NOCRED, td);
+ error = VOP_STAT(vp, sb, td->td_ucred, NOCRED);
vput(vp);
return (error);
}