diff options
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 4dbbf44727ea..5f353d4686b6 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -1856,6 +1856,7 @@ static int nfs4_xdr_enc_read(struct rpc_rqst *req, __be32 *p, struct nfs_readarg | |||
1856 | replen = (RPC_REPHDRSIZE + auth->au_rslack + NFS4_dec_read_sz) << 2; | 1856 | replen = (RPC_REPHDRSIZE + auth->au_rslack + NFS4_dec_read_sz) << 2; |
1857 | xdr_inline_pages(&req->rq_rcv_buf, replen, | 1857 | xdr_inline_pages(&req->rq_rcv_buf, replen, |
1858 | args->pages, args->pgbase, args->count); | 1858 | args->pages, args->pgbase, args->count); |
1859 | req->rq_rcv_buf.flags |= XDRBUF_READ; | ||
1859 | out: | 1860 | out: |
1860 | return status; | 1861 | return status; |
1861 | } | 1862 | } |
@@ -1932,6 +1933,7 @@ static int nfs4_xdr_enc_write(struct rpc_rqst *req, __be32 *p, struct nfs_writea | |||
1932 | status = encode_write(&xdr, args); | 1933 | status = encode_write(&xdr, args); |
1933 | if (status) | 1934 | if (status) |
1934 | goto out; | 1935 | goto out; |
1936 | req->rq_snd_buf.flags |= XDRBUF_WRITE; | ||
1935 | status = encode_getfattr(&xdr, args->bitmask); | 1937 | status = encode_getfattr(&xdr, args->bitmask); |
1936 | out: | 1938 | out: |
1937 | return status; | 1939 | return status; |