diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-01-15 15:17:58 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-23 09:03:45 -0400 |
commit | 4aea24b2ff7510932118ec9b06c35a11625194ea (patch) | |
tree | fcd3b1ff1544696ebd0381d5fbbba0ec4ccd1df4 /fs/nfsd/nfs4state.c | |
parent | e372ba60def1af33e1c0b9bbfa5c8f8559c1ad6b (diff) |
nfsd4: embed xdr_stream in nfsd4_compoundres
This is a mechanical transformation with no change in behavior.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 42f6c25ec8e8..14bfb5568715 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1573,10 +1573,10 @@ nfsd4_store_cache_entry(struct nfsd4_compoundres *resp) | |||
1573 | slot->sl_datalen = 0; | 1573 | slot->sl_datalen = 0; |
1574 | return; | 1574 | return; |
1575 | } | 1575 | } |
1576 | slot->sl_datalen = (char *)resp->p - (char *)resp->cstate.datap; | 1576 | slot->sl_datalen = (char *)resp->xdr.p - (char *)resp->cstate.datap; |
1577 | base = (char *)resp->cstate.datap - | 1577 | base = (char *)resp->cstate.datap - |
1578 | (char *)resp->xbuf->head[0].iov_base; | 1578 | (char *)resp->xdr.buf->head[0].iov_base; |
1579 | if (read_bytes_from_xdr_buf(resp->xbuf, base, slot->sl_data, | 1579 | if (read_bytes_from_xdr_buf(resp->xdr.buf, base, slot->sl_data, |
1580 | slot->sl_datalen)) | 1580 | slot->sl_datalen)) |
1581 | WARN("%s: sessions DRC could not cache compound\n", __func__); | 1581 | WARN("%s: sessions DRC could not cache compound\n", __func__); |
1582 | return; | 1582 | return; |
@@ -1630,7 +1630,7 @@ nfsd4_replay_cache_entry(struct nfsd4_compoundres *resp, | |||
1630 | memcpy(resp->cstate.datap, slot->sl_data, slot->sl_datalen); | 1630 | memcpy(resp->cstate.datap, slot->sl_data, slot->sl_datalen); |
1631 | 1631 | ||
1632 | resp->opcnt = slot->sl_opcnt; | 1632 | resp->opcnt = slot->sl_opcnt; |
1633 | resp->p = resp->cstate.datap + XDR_QUADLEN(slot->sl_datalen); | 1633 | resp->xdr.p = resp->cstate.datap + XDR_QUADLEN(slot->sl_datalen); |
1634 | status = slot->sl_status; | 1634 | status = slot->sl_status; |
1635 | 1635 | ||
1636 | return status; | 1636 | return status; |