提交 7025005d 编写于 作者: J Jeff Layton 提交者: J. Bruce Fields

nfsd: remove unneeded zeroing of fields in nfsd4_proc_compound

The memset of resp in svc_process_common should ensure that these are
already zeroed by the time they get here.
Signed-off-by: NJeff Layton <jlayton@primarydata.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 ba5378b6
...@@ -1290,11 +1290,8 @@ nfsd4_proc_compound(struct svc_rqst *rqstp, ...@@ -1290,11 +1290,8 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
xdr_reserve_space(&resp->xdr, 8 + args->taglen); xdr_reserve_space(&resp->xdr, 8 + args->taglen);
resp->taglen = args->taglen; resp->taglen = args->taglen;
resp->tag = args->tag; resp->tag = args->tag;
resp->opcnt = 0;
resp->rqstp = rqstp; resp->rqstp = rqstp;
cstate->minorversion = args->minorversion; cstate->minorversion = args->minorversion;
cstate->replay_owner = NULL;
cstate->session = NULL;
fh_init(current_fh, NFS4_FHSIZE); fh_init(current_fh, NFS4_FHSIZE);
fh_init(save_fh, NFS4_FHSIZE); fh_init(save_fh, NFS4_FHSIZE);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册