diff options
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index a656b6e179b0..0f2dcfb41f29 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -2275,7 +2275,8 @@ static void nfs4_xdr_enc_write(struct rpc_rqst *req, struct xdr_stream *xdr, | |||
2275 | encode_putfh(xdr, args->fh, &hdr); | 2275 | encode_putfh(xdr, args->fh, &hdr); |
2276 | encode_write(xdr, args, &hdr); | 2276 | encode_write(xdr, args, &hdr); |
2277 | req->rq_snd_buf.flags |= XDRBUF_WRITE; | 2277 | req->rq_snd_buf.flags |= XDRBUF_WRITE; |
2278 | encode_getfattr(xdr, args->bitmask, &hdr); | 2278 | if (args->bitmask) |
2279 | encode_getfattr(xdr, args->bitmask, &hdr); | ||
2279 | encode_nops(&hdr); | 2280 | encode_nops(&hdr); |
2280 | } | 2281 | } |
2281 | 2282 | ||
@@ -5694,8 +5695,9 @@ static int nfs4_xdr_dec_write(struct rpc_rqst *rqstp, struct xdr_stream *xdr, | |||
5694 | status = decode_write(xdr, res); | 5695 | status = decode_write(xdr, res); |
5695 | if (status) | 5696 | if (status) |
5696 | goto out; | 5697 | goto out; |
5697 | decode_getfattr(xdr, res->fattr, res->server, | 5698 | if (res->fattr) |
5698 | !RPC_IS_ASYNC(rqstp->rq_task)); | 5699 | decode_getfattr(xdr, res->fattr, res->server, |
5700 | !RPC_IS_ASYNC(rqstp->rq_task)); | ||
5699 | if (!status) | 5701 | if (!status) |
5700 | status = res->count; | 5702 | status = res->count; |
5701 | out: | 5703 | out: |