xprtrdma: Fix use of xdr_stream_encode_item_{present, absent}
authorChuck Lever <chuck.lever@oracle.com>
Mon, 20 Apr 2020 00:03:10 +0000 (20:03 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 20 Apr 2020 14:45:01 +0000 (10:45 -0400)
commit48a124e383508d3d73453d540a825c0745454af9
treeb48b281e442c6b044b5d5ea2b4d66f7a9e8966f9
parentbdb2ce82818577ba6e57b7d68b698b8d17329281
xprtrdma: Fix use of xdr_stream_encode_item_{present, absent}

These new helpers do not return 0 on success, they return the
encoded size. Thus they are not a drop-in replacement for the
old helpers.

Fixes: 5c266df52701 ("SUNRPC: Add encoders for list item discriminators")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c