summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-10-20 07:19:03 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-10-20 07:19:03 +0000
commitab21ed17edcd9643cd6c9d534fa6ffbfb61ec41f (patch)
tree1068e582fbfc9723fe4b6b4d9a4a6e7e4096cc2c
parent8ecd87a3e7f5503951d37eab034cb330a1c6ec86 (diff)
downloadsrc-test2-ab21ed17edcd9643cd6c9d534fa6ffbfb61ec41f.tar.gz
src-test2-ab21ed17edcd9643cd6c9d534fa6ffbfb61ec41f.zip
Notes
-rw-r--r--sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c3
-rw-r--r--sys/fs/cd9660/cd9660_node.c1
-rw-r--r--sys/fs/ext2fs/ext2_inode.c2
-rw-r--r--sys/fs/fuse/fuse_vnops.c3
-rw-r--r--sys/fs/nfsclient/nfs_clnode.c8
-rw-r--r--sys/fs/smbfs/smbfs_node.c3
-rw-r--r--sys/kern/vfs_subr.c2
-rw-r--r--sys/kern/vnode_if.src1
8 files changed, 10 insertions, 13 deletions
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
index 2b56deb6bf25..f7ee597d3f2e 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
@@ -5821,7 +5821,7 @@ zfs_freebsd_inactive(struct vop_inactive_args *ap)
{
vnode_t *vp = ap->a_vp;
- zfs_inactive(vp, ap->a_td->td_ucred, NULL);
+ zfs_inactive(vp, curthread->td_ucred, NULL);
return (0);
}
@@ -5829,7 +5829,6 @@ zfs_freebsd_inactive(struct vop_inactive_args *ap)
#ifndef _SYS_SYSPROTO_H_
struct vop_need_inactive_args {
struct vnode *a_vp;
- struct thread *a_td;
};
#endif
diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c
index a18216994e20..cc45ac161040 100644
--- a/sys/fs/cd9660/cd9660_node.c
+++ b/sys/fs/cd9660/cd9660_node.c
@@ -63,7 +63,6 @@ int
cd9660_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
- struct thread *a_td;
} */ *ap;
{
struct vnode *vp = ap->a_vp;
diff --git a/sys/fs/ext2fs/ext2_inode.c b/sys/fs/ext2fs/ext2_inode.c
index f876f832bdca..1e7584ebaa66 100644
--- a/sys/fs/ext2fs/ext2_inode.c
+++ b/sys/fs/ext2fs/ext2_inode.c
@@ -593,7 +593,7 @@ ext2_inactive(struct vop_inactive_args *ap)
{
struct vnode *vp = ap->a_vp;
struct inode *ip = VTOI(vp);
- struct thread *td = ap->a_td;
+ struct thread *td = curthread;
int mode, error = 0;
/*
diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
index e66c98a0b612..df29a3079ade 100644
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -850,14 +850,13 @@ fake:
/*
struct vnop_inactive_args {
struct vnode *a_vp;
- struct thread *a_td;
};
*/
static int
fuse_vnop_inactive(struct vop_inactive_args *ap)
{
struct vnode *vp = ap->a_vp;
- struct thread *td = ap->a_td;
+ struct thread *td = curthread;
struct fuse_vnode_data *fvdat = VTOFUD(vp);
struct fuse_filehandle *fufh, *fufh_tmp;
diff --git a/sys/fs/nfsclient/nfs_clnode.c b/sys/fs/nfsclient/nfs_clnode.c
index 061f0cfdd2e6..a59b96bf3c8b 100644
--- a/sys/fs/nfsclient/nfs_clnode.c
+++ b/sys/fs/nfsclient/nfs_clnode.c
@@ -239,8 +239,10 @@ ncl_inactive(struct vop_inactive_args *ap)
{
struct vnode *vp = ap->a_vp;
struct nfsnode *np;
+ struct thread *td;
boolean_t retv;
+ td = curthread;
if (NFS_ISV4(vp) && vp->v_type == VREG) {
/*
* Since mmap()'d files do I/O after VOP_CLOSE(), the NFSv4
@@ -256,14 +258,14 @@ ncl_inactive(struct vop_inactive_args *ap)
} else
retv = TRUE;
if (retv == TRUE) {
- (void)ncl_flush(vp, MNT_WAIT, ap->a_td, 1, 0);
- (void)nfsrpc_close(vp, 1, ap->a_td);
+ (void)ncl_flush(vp, MNT_WAIT, td, 1, 0);
+ (void)nfsrpc_close(vp, 1, td);
}
}
np = VTONFS(vp);
NFSLOCKNODE(np);
- ncl_releasesillyrename(vp, ap->a_td);
+ ncl_releasesillyrename(vp, td);
/*
* NMODIFIED means that there might be dirty/stale buffers
diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c
index 603bd5ce84de..f7ba9ac1c1a4 100644
--- a/sys/fs/smbfs/smbfs_node.c
+++ b/sys/fs/smbfs/smbfs_node.c
@@ -299,10 +299,9 @@ int
smbfs_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
- struct thread *a_td;
} */ *ap;
{
- struct thread *td = ap->a_td;
+ struct thread *td = curthread;
struct ucred *cred = td->td_ucred;
struct vnode *vp = ap->a_vp;
struct smbnode *np = VTOSMB(vp);
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ba53532141a2..c17d336d211a 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3524,7 +3524,7 @@ vinactivef(struct vnode *vp)
vm_object_page_clean(obj, 0, 0, 0);
VM_OBJECT_WUNLOCK(obj);
}
- VOP_INACTIVE(vp, curthread);
+ VOP_INACTIVE(vp);
VI_LOCK(vp);
VNASSERT(vp->v_iflag & VI_DOINGINACT, vp,
("vinactive: lost VI_DOINGINACT"));
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src
index 8dd48de854d9..09b46b2c3212 100644
--- a/sys/kern/vnode_if.src
+++ b/sys/kern/vnode_if.src
@@ -397,7 +397,6 @@ vop_readlink {
vop_inactive {
IN struct vnode *vp;
- IN struct thread *td;
};
%! need_inactive debugpre vop_need_inactive_debugpre