]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nfs41: use nfs4_readlink_res
authorBenny Halevy <bhalevy@panasas.com>
Wed, 1 Apr 2009 13:21:55 +0000 (09:21 -0400)
committerBenny Halevy <bhalevy@panasas.com>
Wed, 17 Jun 2009 17:46:21 +0000 (10:46 -0700)
In preparation for nfs41 sequence processing.

Signed-off-by: Andy Admason <andros@netapp.com>
[define nfs4_readlink_res]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h

index 5ef1022b7e6fc774a2b59d108dae8f2d7d86a8ab..b0ec8ff96eb7a42e3ffcd7da69c7e3176e78642e 100644 (file)
@@ -1960,10 +1960,11 @@ static int _nfs4_proc_readlink(struct inode *inode, struct page *page,
                .pglen    = pglen,
                .pages    = &page,
        };
+       struct nfs4_readlink_res res;
        struct rpc_message msg = {
                .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_READLINK],
                .rpc_argp = &args,
-               .rpc_resp = NULL,
+               .rpc_resp = &res,
        };
 
        return rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
index 91305861037a749352fd020ef520c22af541f722..1e41420916ad90da50dae9bead9700f34705864e 100644 (file)
@@ -4235,7 +4235,8 @@ out:
 /*
  * Decode READLINK response
  */
-static int nfs4_xdr_dec_readlink(struct rpc_rqst *rqstp, __be32 *p, void *res)
+static int nfs4_xdr_dec_readlink(struct rpc_rqst *rqstp, __be32 *p,
+                                struct nfs4_readlink_res *res)
 {
        struct xdr_stream xdr;
        struct compound_hdr hdr;
index a7b7f2a059cc4864dc3dea4394ecdfe7dc9e0523..f71260aeb803e8cca33dd41653e62a6852f5cead 100644 (file)
@@ -754,6 +754,10 @@ struct nfs4_readlink {
        struct nfs4_sequence_args       seq_args;
 };
 
+struct nfs4_readlink_res {
+       struct nfs4_sequence_res        seq_res;
+};
+
 struct nfs4_rename_arg {
        const struct nfs_fh *           old_dir;
        const struct nfs_fh *           new_dir;