aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2_vfsops.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-16 17:18:54 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-16 17:18:54 +0000
commita92a971bbb94ad5b44e2a5bbdc669ad3ae762c8d (patch)
tree2b25fe1e41aaf0791b26dd5a4b8ad0cad897fe6e /sys/fs/ext2fs/ext2_vfsops.c
parentd59f3890c36601f4f62bb4a0b7db977e42339588 (diff)
downloadsrc-a92a971bbb94ad5b44e2a5bbdc669ad3ae762c8d.tar.gz
src-a92a971bbb94ad5b44e2a5bbdc669ad3ae762c8d.zip
vfs: remove the thread argument from vget
It was already asserted to be curthread. Semantic patch: @@ expression arg1, arg2, arg3; @@ - vget(arg1, arg2, arg3) + vget(arg1, arg2)
Notes
Notes: svn path=/head/; revision=364271
Diffstat (limited to 'sys/fs/ext2fs/ext2_vfsops.c')
-rw-r--r--sys/fs/ext2fs/ext2_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_vfsops.c b/sys/fs/ext2fs/ext2_vfsops.c
index f40fb7202e45..5aff9bdb2ff2 100644
--- a/sys/fs/ext2fs/ext2_vfsops.c
+++ b/sys/fs/ext2fs/ext2_vfsops.c
@@ -799,7 +799,7 @@ loop:
/*
* Step 4: invalidate all cached file data.
*/
- if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) {
+ if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK)) {
MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp);
goto loop;
}
@@ -1158,7 +1158,7 @@ loop:
VI_UNLOCK(vp);
continue;
}
- error = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK, td);
+ error = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK);
if (error) {
if (error == ENOENT) {
MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp);