NFSD: Remove iattr parameter from nfsd_symlink()
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 1 Jul 2014 09:48:02 +0000 (17:48 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Jul 2014 21:14:31 +0000 (17:14 -0400)
Commit db2e747b1499 (vfs: remove mode parameter from vfs_symlink())
have remove mode parameter from vfs_symlink.
So that, iattr isn't needed by nfsd_symlink now, just remove it.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h

index 19ba233cf006e24dd971428271f8e9379713bbe5..fa2525b2e9d798c5f2f9249eac65d3a0c0cdcdfd 100644 (file)
@@ -282,8 +282,7 @@ nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp,
        fh_copy(&resp->dirfh, &argp->ffh);
        fh_init(&resp->fh, NFS3_FHSIZE);
        nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen,
-                                                  argp->tname,
-                                                  &resp->fh, &argp->attrs);
+                                                  argp->tname, &resp->fh);
        RETURN_STATUS(nfserr);
 }
 
index b57c8826ce083b4cdd3c9f6cdc3c08eb6c4adcf4..9425ffc4880959e7dfe7ccc6bb1518494d5d8501 100644 (file)
@@ -623,8 +623,7 @@ nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
        case NF4LNK:
                status = nfsd_symlink(rqstp, &cstate->current_fh,
                                      create->cr_name, create->cr_namelen,
-                                     create->cr_data,
-                                     &resfh, &create->cr_iattr);
+                                     create->cr_data, &resfh);
                break;
 
        case NF4BLK:
index 583ed03877e42caf5a8f23b677cdb64f763ada10..eff49552cdc85aaec39bbcf04431a1f0d1e9b191 100644 (file)
@@ -409,9 +409,7 @@ nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp,
         */
        argp->tname[argp->tlen] = '\0';
        nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen,
-                                                argp->tname,
-                                                &newfh, &argp->attrs);
-
+                                                argp->tname, &newfh);
 
        fh_put(&argp->ffh);
        fh_put(&newfh);
index 7518c65f9a5ae438ebcec546f5a98329c476ba97..730f31964597b5e3591aa860cfcd808f5d9135d4 100644 (file)
@@ -1505,8 +1505,7 @@ __be32
 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp,
                                char *fname, int flen,
                                char *path,
-                               struct svc_fh *resfhp,
-                               struct iattr *iap)
+                               struct svc_fh *resfhp)
 {
        struct dentry   *dentry, *dnew;
        __be32          err, cerr;
index 20e4b6679e4629958490b3c2f51b3d827af28898..c2ff3f14e5f6146fc4d0ea72f063d32e615921e4 100644 (file)
@@ -86,7 +86,7 @@ __be32                nfsd_readlink(struct svc_rqst *, struct svc_fh *,
                                char *, int *);
 __be32         nfsd_symlink(struct svc_rqst *, struct svc_fh *,
                                char *name, int len, char *path,
-                               struct svc_fh *res, struct iattr *);
+                               struct svc_fh *res);
 __be32         nfsd_link(struct svc_rqst *, struct svc_fh *,
                                char *, int, struct svc_fh *);
 __be32         nfsd_rename(struct svc_rqst *,