Commit 73c403a9 authored by Benny Halevy's avatar Benny Halevy

nfs41: use nfs4_setaclres

In preparation for nfs41 sequence processing.
Signed-off-by: default avatarAndy Admason <andros@netapp.com>
[define nfs_setaclres]
Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 9e9ecc03
...@@ -2842,10 +2842,11 @@ static int __nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t bufl ...@@ -2842,10 +2842,11 @@ static int __nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t bufl
.acl_pages = pages, .acl_pages = pages,
.acl_len = buflen, .acl_len = buflen,
}; };
struct nfs_setaclres res;
struct rpc_message msg = { struct rpc_message msg = {
.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SETACL], .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SETACL],
.rpc_argp = &arg, .rpc_argp = &arg,
.rpc_resp = NULL, .rpc_resp = &res,
}; };
int ret; int ret;
......
...@@ -3996,7 +3996,8 @@ nfs4_xdr_enc_setacl(struct rpc_rqst *req, __be32 *p, struct nfs_setaclargs *args ...@@ -3996,7 +3996,8 @@ nfs4_xdr_enc_setacl(struct rpc_rqst *req, __be32 *p, struct nfs_setaclargs *args
* Decode SETACL response * Decode SETACL response
*/ */
static int 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 xdr_stream xdr;
struct compound_hdr hdr; struct compound_hdr hdr;
......
...@@ -436,6 +436,10 @@ struct nfs_setaclargs { ...@@ -436,6 +436,10 @@ struct nfs_setaclargs {
struct nfs4_sequence_args seq_args; struct nfs4_sequence_args seq_args;
}; };
struct nfs_setaclres {
struct nfs4_sequence_res seq_res;
};
struct nfs_getaclargs { struct nfs_getaclargs {
struct nfs_fh * fh; struct nfs_fh * fh;
size_t acl_len; size_t acl_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment