nfs41: use nfs4_setaclres
authorBenny Halevy <bhalevy@panasas.com>
Wed, 1 Apr 2009 13:22:01 +0000 (09:22 -0400)
committerBenny Halevy <bhalevy@panasas.com>
Wed, 17 Jun 2009 17:46:26 +0000 (10:46 -0700)
In preparation for nfs41 sequence processing.

Signed-off-by: Andy Admason <andros@netapp.com>
[define nfs_setaclres]
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 20c9acf689fd740455f9e779a0071e572c02b1c4..62bbe25d9423cb344ed48a2743070e165756cf46 100644 (file)
@@ -2842,10 +2842,11 @@ static int __nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t bufl
                .acl_pages      = pages,
                .acl_len        = buflen,
        };
+       struct nfs_setaclres res;
        struct rpc_message msg = {
                .rpc_proc       = &nfs4_procedures[NFSPROC4_CLNT_SETACL],
                .rpc_argp       = &arg,
-               .rpc_resp       = NULL,
+               .rpc_resp       = &res,
        };
        int ret;
 
index 27dd25d9ad423ccd614233f72c03296bcffe6461..aa350d5bf2070f8e8bea47a36154734545664f74 100644 (file)
@@ -3996,7 +3996,8 @@ nfs4_xdr_enc_setacl(struct rpc_rqst *req, __be32 *p, struct nfs_setaclargs *args
  * Decode SETACL response
  */
 static int
-nfs4_xdr_dec_setacl(struct rpc_rqst *rqstp, __be32 *p, void *res)
+nfs4_xdr_dec_setacl(struct rpc_rqst *rqstp, __be32 *p,
+                   struct nfs_setaclres *res)
 {
        struct xdr_stream xdr;
        struct compound_hdr hdr;
index 6e9ee2848606e4c69f053d85b954b1a6f044f30b..0f2dc8f4cc36b4d61d41de04cd41fc5a7baa6bc0 100644 (file)
@@ -436,6 +436,10 @@ struct nfs_setaclargs {
        struct nfs4_sequence_args       seq_args;
 };
 
+struct nfs_setaclres {
+       struct nfs4_sequence_res        seq_res;
+};
+
 struct nfs_getaclargs {
        struct nfs_fh *                 fh;
        size_t                          acl_len;