nfscl: Clean up the code by removing unused arguments
The "void *stuff" (also called fstuff and dstuff) argument was used by the Mac OSX port. For FreeBSD, this argument is always NULL, so remove it to clean up the code. This commit gets rid of "stuff" for assorted functions defined in nfs_clrpcops.c and called in nfs_clvnops.c. Future commits will do the same for other functions. This commit should not result in a semantics change.
This commit is contained in:
parent
e16b709e2d
commit
af6665e0aa
@ -487,12 +487,12 @@ int nfsrpc_link(vnode_t, vnode_t, char *, int,
|
||||
int *, int *);
|
||||
int nfsrpc_symlink(vnode_t, char *, int, const char *, struct vattr *,
|
||||
struct ucred *, NFSPROC_T *, struct nfsvattr *, struct nfsvattr *,
|
||||
struct nfsfh **, int *, int *, void *);
|
||||
struct nfsfh **, int *, int *);
|
||||
int nfsrpc_mkdir(vnode_t, char *, int, struct vattr *,
|
||||
struct ucred *, NFSPROC_T *, struct nfsvattr *, struct nfsvattr *,
|
||||
struct nfsfh **, int *, int *, void *);
|
||||
struct nfsfh **, int *, int *);
|
||||
int nfsrpc_rmdir(vnode_t, char *, int, struct ucred *, NFSPROC_T *,
|
||||
struct nfsvattr *, int *, void *);
|
||||
struct nfsvattr *, int *);
|
||||
int nfsrpc_readdir(vnode_t, struct uio *, nfsuint64 *, struct ucred *,
|
||||
NFSPROC_T *, struct nfsvattr *, int *, int *, void *);
|
||||
int nfsrpc_readdirplus(vnode_t, struct uio *, nfsuint64 *,
|
||||
|
@ -3012,7 +3012,7 @@ int
|
||||
nfsrpc_symlink(vnode_t dvp, char *name, int namelen, const char *target,
|
||||
struct vattr *vap, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap,
|
||||
struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp,
|
||||
int *dattrflagp, void *dstuff)
|
||||
int *dattrflagp)
|
||||
{
|
||||
u_int32_t *tl;
|
||||
struct nfsrv_descript nfsd, *nd = &nfsd;
|
||||
@ -3073,7 +3073,7 @@ int
|
||||
nfsrpc_mkdir(vnode_t dvp, char *name, int namelen, struct vattr *vap,
|
||||
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap,
|
||||
struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp,
|
||||
int *dattrflagp, void *dstuff)
|
||||
int *dattrflagp)
|
||||
{
|
||||
u_int32_t *tl;
|
||||
struct nfsrv_descript nfsd, *nd = &nfsd;
|
||||
@ -3153,7 +3153,7 @@ nfsrpc_mkdir(vnode_t dvp, char *name, int namelen, struct vattr *vap,
|
||||
*/
|
||||
int
|
||||
nfsrpc_rmdir(vnode_t dvp, char *name, int namelen, struct ucred *cred,
|
||||
NFSPROC_T *p, struct nfsvattr *dnap, int *dattrflagp, void *dstuff)
|
||||
NFSPROC_T *p, struct nfsvattr *dnap, int *dattrflagp)
|
||||
{
|
||||
struct nfsrv_descript nfsd, *nd = &nfsd;
|
||||
int error = 0;
|
||||
|
@ -2245,7 +2245,7 @@ nfs_symlink(struct vop_symlink_args *ap)
|
||||
vap->va_type = VLNK;
|
||||
error = nfsrpc_symlink(dvp, cnp->cn_nameptr, cnp->cn_namelen,
|
||||
ap->a_target, vap, cnp->cn_cred, curthread, &dnfsva,
|
||||
&nfsva, &nfhp, &attrflag, &dattrflag, NULL);
|
||||
&nfsva, &nfhp, &attrflag, &dattrflag);
|
||||
if (nfhp) {
|
||||
ret = nfscl_nget(dvp->v_mount, dvp, nfhp, cnp, curthread,
|
||||
&np, LK_EXCLUSIVE);
|
||||
@ -2328,7 +2328,7 @@ nfs_mkdir(struct vop_mkdir_args *ap)
|
||||
vap->va_type = VDIR;
|
||||
error = nfsrpc_mkdir(dvp, cnp->cn_nameptr, cnp->cn_namelen,
|
||||
vap, cnp->cn_cred, curthread, &dnfsva, &nfsva, &nfhp,
|
||||
&attrflag, &dattrflag, NULL);
|
||||
&attrflag, &dattrflag);
|
||||
dnp = VTONFS(dvp);
|
||||
NFSLOCKNODE(dnp);
|
||||
dnp->n_flag |= NMODIFIED;
|
||||
@ -2405,7 +2405,7 @@ nfs_rmdir(struct vop_rmdir_args *ap)
|
||||
if (dvp == vp)
|
||||
return (EINVAL);
|
||||
error = nfsrpc_rmdir(dvp, cnp->cn_nameptr, cnp->cn_namelen,
|
||||
cnp->cn_cred, curthread, &dnfsva, &dattrflag, NULL);
|
||||
cnp->cn_cred, curthread, &dnfsva, &dattrflag);
|
||||
dnp = VTONFS(dvp);
|
||||
NFSLOCKNODE(dnp);
|
||||
dnp->n_flag |= NMODIFIED;
|
||||
|
Loading…
Reference in New Issue
Block a user