summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-07-01 07:51:16 +0000
committerrwatson <rwatson@FreeBSD.org>2008-07-01 07:51:16 +0000
commit9ff980a478fc3df349087578fac081683d75aaf9 (patch)
tree6bb34b9311251947a2cc7144200196361511db19 /sys/fs/smbfs
parent4068ef17cb788c294a763796d62b43b9bbc29808 (diff)
downloadFreeBSD-src-9ff980a478fc3df349087578fac081683d75aaf9.zip
FreeBSD-src-9ff980a478fc3df349087578fac081683d75aaf9.tar.gz
Remove unused 'td' arguments from smbfs_hash_lock() and
smbfs_hash_unlock(). MFC after: 3 days
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r--sys/fs/smbfs/smbfs_node.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c
index d4a93fe..02624d7 100644
--- a/sys/fs/smbfs/smbfs_node.c
+++ b/sys/fs/smbfs/smbfs_node.c
@@ -59,8 +59,8 @@
#include <fs/smbfs/smbfs_subr.h>
#define SMBFS_NOHASH(smp, hval) (&(smp)->sm_hash[(hval) & (smp)->sm_hashlen])
-#define smbfs_hash_lock(smp, td) sx_xlock(&smp->sm_hashlock)
-#define smbfs_hash_unlock(smp, td) sx_xunlock(&smp->sm_hashlock)
+#define smbfs_hash_lock(smp) sx_xlock(&smp->sm_hashlock)
+#define smbfs_hash_unlock(smp) sx_xunlock(&smp->sm_hashlock)
extern struct vop_vector smbfs_vnodeops; /* XXX -> .h file */
@@ -192,7 +192,7 @@ smbfs_node_alloc(struct mount *mp, struct vnode *dvp,
}
hashval = smbfs_hash(name, nmlen);
retry:
- smbfs_hash_lock(smp, td);
+ smbfs_hash_lock(smp);
loop:
nhpp = SMBFS_NOHASH(smp, hashval);
LIST_FOREACH(np, nhpp, n_hash) {
@@ -201,7 +201,7 @@ loop:
np->n_nmlen != nmlen || bcmp(name, np->n_name, nmlen) != 0)
continue;
VI_LOCK(vp);
- smbfs_hash_unlock(smp, td);
+ smbfs_hash_unlock(smp);
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td) != 0)
goto retry;
/* Force cached attributes to be refreshed if stale. */
@@ -221,7 +221,7 @@ loop:
*vpp = vp;
return 0;
}
- smbfs_hash_unlock(smp, td);
+ smbfs_hash_unlock(smp);
/*
* If we don't have node attributes, then it is an explicit lookup
* for an existing vnode.
@@ -262,7 +262,7 @@ loop:
VN_LOCK_AREC(vp);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
- smbfs_hash_lock(smp, td);
+ smbfs_hash_lock(smp);
LIST_FOREACH(np2, nhpp, n_hash) {
if (np2->n_parent != dvp ||
np2->n_nmlen != nmlen || bcmp(name, np2->n_name, nmlen) != 0)
@@ -273,7 +273,7 @@ loop:
goto loop;
}
LIST_INSERT_HEAD(nhpp, np, n_hash);
- smbfs_hash_unlock(smp, td);
+ smbfs_hash_unlock(smp);
*vpp = vp;
return 0;
}
@@ -316,7 +316,7 @@ smbfs_reclaim(ap)
KASSERT((np->n_flag & NOPEN) == 0, ("file not closed before reclaim"));
- smbfs_hash_lock(smp, td);
+ smbfs_hash_lock(smp);
/*
* Destroy the vm object and flush associated pages.
*/
@@ -332,7 +332,7 @@ smbfs_reclaim(ap)
smp->sm_root = NULL;
}
vp->v_data = NULL;
- smbfs_hash_unlock(smp, td);
+ smbfs_hash_unlock(smp);
if (np->n_name)
smbfs_name_free(np->n_name);
FREE(np, M_SMBNODE);
OpenPOWER on IntegriCloud