1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Remove unused thread argument from ufs_extattr_uepm_lock()/ufs_extattr_uepm_unlock().

This commit is contained in:
Edward Tomasz Napierala 2012-04-23 17:56:35 +00:00
parent 05cc75de83
commit 06c65b6b41
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234613

View File

@ -108,14 +108,14 @@ static int ufs_extattr_start_locked(struct ufsmount *ump,
* backing file anyway.
*/
static void
ufs_extattr_uepm_lock(struct ufsmount *ump, struct thread *td)
ufs_extattr_uepm_lock(struct ufsmount *ump)
{
sx_xlock(&ump->um_extattr.uepm_lock);
}
static void
ufs_extattr_uepm_unlock(struct ufsmount *ump, struct thread *td)
ufs_extattr_uepm_unlock(struct ufsmount *ump)
{
sx_xunlock(&ump->um_extattr.uepm_lock);
@ -213,9 +213,9 @@ ufs_extattr_start(struct mount *mp, struct thread *td)
ump = VFSTOUFS(mp);
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_start_locked(ump, td);
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -458,9 +458,9 @@ ufs_extattr_autostart(struct mount *mp, struct thread *td)
int error;
ump = VFSTOUFS(mp);
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_autostart_locked(mp, td);
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -566,7 +566,7 @@ ufs_extattr_stop(struct mount *mp, struct thread *td)
struct ufsmount *ump = VFSTOUFS(mp);
int error = 0;
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
if (!(ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_STARTED)) {
error = EOPNOTSUPP;
@ -584,7 +584,7 @@ ufs_extattr_stop(struct mount *mp, struct thread *td)
ump->um_extattr.uepm_ucred = NULL;
unlock:
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -783,10 +783,10 @@ ufs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp,
* ufs_extattr_enable_with_open() will always unlock the
* vnode, regardless of failure.
*/
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_enable_with_open(ump, filename_vp,
attrnamespace, attrname, td);
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return (error);
@ -799,10 +799,10 @@ ufs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp,
if (attrname == NULL)
return (EINVAL);
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_disable(ump, attrnamespace, attrname,
td);
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return (error);
@ -832,12 +832,12 @@ vop_getextattr {
struct ufsmount *ump = VFSTOUFS(mp);
int error;
ufs_extattr_uepm_lock(ump, ap->a_td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_get(ap->a_vp, ap->a_attrnamespace, ap->a_name,
ap->a_uio, ap->a_size, ap->a_cred, ap->a_td);
ufs_extattr_uepm_unlock(ump, ap->a_td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -1002,13 +1002,13 @@ vop_deleteextattr {
struct ufsmount *ump = VFSTOUFS(mp);
int error;
ufs_extattr_uepm_lock(ump, ap->a_td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_rm(ap->a_vp, ap->a_attrnamespace, ap->a_name,
ap->a_cred, ap->a_td);
ufs_extattr_uepm_unlock(ump, ap->a_td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -1039,12 +1039,12 @@ vop_setextattr {
if (ap->a_uio == NULL)
return (EINVAL);
ufs_extattr_uepm_lock(ump, ap->a_td);
ufs_extattr_uepm_lock(ump);
error = ufs_extattr_set(ap->a_vp, ap->a_attrnamespace, ap->a_name,
ap->a_uio, ap->a_cred, ap->a_td);
ufs_extattr_uepm_unlock(ump, ap->a_td);
ufs_extattr_uepm_unlock(ump);
return (error);
}
@ -1295,10 +1295,10 @@ ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td)
if (!(ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_INITIALIZED))
return;
ufs_extattr_uepm_lock(ump, td);
ufs_extattr_uepm_lock(ump);
if (!(ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_STARTED)) {
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
return;
}
@ -1306,7 +1306,7 @@ ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td)
ufs_extattr_rm(vp, uele->uele_attrnamespace,
uele->uele_attrname, NULL, td);
ufs_extattr_uepm_unlock(ump, td);
ufs_extattr_uepm_unlock(ump);
}
#endif /* !UFS_EXTATTR */