Remove (now unused) td argument from zfs_lookup()
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net> Closes #12748
This commit is contained in:
parent
7100db9793
commit
70fdb198ad
|
@ -775,8 +775,8 @@ zfs_lookup_lock(vnode_t *dvp, vnode_t *vp, const char *name, int lkflags)
|
|||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_lookup(vnode_t *dvp, const char *nm, vnode_t **vpp,
|
||||
struct componentname *cnp, int nameiop, cred_t *cr, kthread_t *td,
|
||||
int flags, boolean_t cached)
|
||||
struct componentname *cnp, int nameiop, cred_t *cr, int flags,
|
||||
boolean_t cached)
|
||||
{
|
||||
znode_t *zdp = VTOZ(dvp);
|
||||
znode_t *zp;
|
||||
|
@ -1351,8 +1351,8 @@ zfs_lookup_internal(znode_t *dzp, const char *name, vnode_t **vpp,
|
|||
a.a_cnp = cnp;
|
||||
error = vfs_cache_lookup(&a);
|
||||
} else {
|
||||
error = zfs_lookup(ZTOV(dzp), name, vpp, cnp, nameiop, kcred,
|
||||
curthread, 0, B_FALSE);
|
||||
error = zfs_lookup(ZTOV(dzp), name, vpp, cnp, nameiop, kcred, 0,
|
||||
B_FALSE);
|
||||
}
|
||||
#ifdef ZFS_DEBUG
|
||||
if (error) {
|
||||
|
@ -4570,7 +4570,7 @@ zfs_freebsd_lookup(struct vop_lookup_args *ap, boolean_t cached)
|
|||
strlcpy(nm, cnp->cn_nameptr, MIN(cnp->cn_namelen + 1, sizeof (nm)));
|
||||
|
||||
return (zfs_lookup(ap->a_dvp, nm, ap->a_vpp, cnp, cnp->cn_nameiop,
|
||||
cnp->cn_cred, curthread, 0, cached));
|
||||
cnp->cn_cred, 0, cached));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -5271,7 +5271,7 @@ zfs_getextattr_dir(struct vop_getextattr_args *ap, const char *attrname)
|
|||
vnode_t *xvp = NULL, *vp;
|
||||
int error, flags;
|
||||
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred, td,
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred,
|
||||
LOOKUP_XATTR, B_FALSE);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
@ -5380,18 +5380,17 @@ struct vop_deleteextattr {
|
|||
static int
|
||||
zfs_deleteextattr_dir(struct vop_deleteextattr_args *ap, const char *attrname)
|
||||
{
|
||||
struct thread *td = ap->a_td;
|
||||
struct nameidata nd;
|
||||
vnode_t *xvp = NULL, *vp;
|
||||
int error;
|
||||
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred, td,
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred,
|
||||
LOOKUP_XATTR, B_FALSE);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
||||
NDINIT_ATVP(&nd, DELETE, NOFOLLOW | LOCKPARENT | LOCKLEAF,
|
||||
UIO_SYSSPACE, attrname, xvp, td);
|
||||
UIO_SYSSPACE, attrname, xvp, ap->a_td);
|
||||
error = namei(&nd);
|
||||
vp = nd.ni_vp;
|
||||
if (error != 0) {
|
||||
|
@ -5511,7 +5510,7 @@ zfs_setextattr_dir(struct vop_setextattr_args *ap, const char *attrname)
|
|||
vnode_t *xvp = NULL, *vp;
|
||||
int error, flags;
|
||||
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred, td,
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred,
|
||||
LOOKUP_XATTR | CREATE_XATTR_DIR, B_FALSE);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
@ -5655,7 +5654,7 @@ zfs_listextattr_dir(struct vop_listextattr_args *ap, const char *attrprefix)
|
|||
vnode_t *xvp = NULL, *vp;
|
||||
int error, eof;
|
||||
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred, td,
|
||||
error = zfs_lookup(ap->a_vp, NULL, &xvp, NULL, 0, ap->a_cred,
|
||||
LOOKUP_XATTR, B_FALSE);
|
||||
if (error != 0) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue