ufs: catch up with removal of thread argument from VOP_INACTIVE

This commit is contained in:
Mateusz Guzik
2020-10-20 09:46:20 +00:00
parent 3fc7822de1
commit e9fb2bd9b8
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ int ufs_extattrctl(struct mount *mp, int cmd, struct vnode *filename,
int ufs_getextattr(struct vop_getextattr_args *ap);
int ufs_deleteextattr(struct vop_deleteextattr_args *ap);
int ufs_setextattr(struct vop_setextattr_args *ap);
void ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td);
void ufs_extattr_vnode_inactive(struct vnode *vp);
#endif /* !_KERNEL */
+2 -2
View File
@@ -1276,7 +1276,7 @@ ufs_extattr_rm(struct vnode *vp, int attrnamespace, const char *name,
* attributes stripped.
*/
void
ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td)
ufs_extattr_vnode_inactive(struct vnode *vp)
{
struct ufs_extattr_list_entry *uele;
struct mount *mp = vp->v_mount;
@@ -1299,7 +1299,7 @@ ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td)
LIST_FOREACH(uele, &ump->um_extattr.uepm_list, uele_entries)
ufs_extattr_rm(vp, uele->uele_attrnamespace,
uele->uele_attrname, NULL, td);
uele->uele_attrname, NULL, curthread);
ufs_extattr_uepm_unlock(ump);
}
+1 -2
View File
@@ -106,7 +106,6 @@ int
ufs_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
struct thread *a_td;
} */ *ap;
{
struct vnode *vp = ap->a_vp;
@@ -173,7 +172,7 @@ ufs_inactive(ap)
(void)chkiq(ip, -1, NOCRED, FORCE);
#endif
#ifdef UFS_EXTATTR
ufs_extattr_vnode_inactive(vp, ap->a_td);
ufs_extattr_vnode_inactive(vp);
#endif
/*
* Setting the mode to zero needs to wait for the inode