diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-16 17:18:54 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-16 17:18:54 +0000 |
commit | a92a971bbb94ad5b44e2a5bbdc669ad3ae762c8d (patch) | |
tree | 2b25fe1e41aaf0791b26dd5a4b8ad0cad897fe6e /sys/fs/ext2fs/ext2_vfsops.c | |
parent | d59f3890c36601f4f62bb4a0b7db977e42339588 (diff) | |
download | src-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.c | 4 |
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); |