aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2015-06-16 13:09:18 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2015-06-16 13:09:18 +0000
commit4da8456f0aef1e189beee8bb09181ee510eeeee1 (patch)
tree15e657e125a980a05b63ad49c2f534d1a717de10 /sys/compat/linux/linux_file.c
parent0e4cd4a2e0eb515cd0e3f0e935704388c46030f6 (diff)
downloadsrc-4da8456f0aef1e189beee8bb09181ee510eeeee1.tar.gz
src-4da8456f0aef1e189beee8bb09181ee510eeeee1.zip
Replace struct filedesc argument in getvnode with struct thread
This is is a step towards removal of spurious arguments.
Notes
Notes: svn path=/head/; revision=284446
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 9251a20abad1..1e5e37a2db76 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -348,8 +348,7 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args,
} else
justone = 0;
- error = getvnode(td->td_proc->p_fd, args->fd,
- cap_rights_init(&rights, CAP_READ), &fp);
+ error = getvnode(td, args->fd, cap_rights_init(&rights, CAP_READ), &fp);
if (error != 0)
return (error);