mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Remove unused 'td' arguments from smbfs_hash_lock() and
smbfs_hash_unlock(). MFC after: 3 days
This commit is contained in:
parent
77f719e605
commit
e54fdca237
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180139
@ -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 @@ smbfs_node_alloc(struct mount *mp, struct vnode *dvp,
|
||||
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 @@ smbfs_node_alloc(struct mount *mp, struct vnode *dvp,
|
||||
*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 @@ smbfs_node_alloc(struct mount *mp, struct vnode *dvp,
|
||||
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 @@ smbfs_node_alloc(struct mount *mp, struct vnode *dvp,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user