Author: trasz
Date: Mon Apr 23 17:56:35 2012
New Revision: 234613
URL: http://svn.freebsd.org/changeset/base/234613

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

Modified:
  head/sys/ufs/ufs/ufs_extattr.c

Modified: head/sys/ufs/ufs/ufs_extattr.c
==============================================================================
--- head/sys/ufs/ufs/ufs_extattr.c      Mon Apr 23 17:54:49 2012        
(r234612)
+++ head/sys/ufs/ufs/ufs_extattr.c      Mon Apr 23 17:56:35 2012        
(r234613)
@@ -108,14 +108,14 @@ static int        ufs_extattr_start_locked(stru
  * 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, stru
 
        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, 
        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, struc
        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, struc
        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
                 * 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
                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 
        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 
                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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to