diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-04-24 09:39:27 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-04-25 15:02:32 -0400 |
commit | 0f665ceb71a20520bdce76fb63ad68c21841aa62 (patch) | |
tree | cab2855a32d7526fafb478d42a527992b7d4daac /net/sunrpc/xprtrdma/xprt_rdma.h | |
parent | bb93a1ae2bf4f6eb3cedf05a2ea4a2e6a80712e6 (diff) | |
download | linux-0f665ceb71a20520bdce76fb63ad68c21841aa62.tar.gz linux-0f665ceb71a20520bdce76fb63ad68c21841aa62.tar.bz2 linux-0f665ceb71a20520bdce76fb63ad68c21841aa62.zip |
xprtrdma: De-duplicate "allocate new, free old regbuf"
Clean up by providing an API to do this common task.
At this point, the difference between rpcrdma_get_sendbuf and
rpcrdma_get_recvbuf has become tiny. These can be collapsed into a
single helper.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 03d5ce443bf0..751d4761d682 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h @@ -552,6 +552,8 @@ void rpcrdma_recv_buffer_put(struct rpcrdma_rep *); struct rpcrdma_regbuf *rpcrdma_alloc_regbuf(size_t, enum dma_data_direction, gfp_t); +bool rpcrdma_regbuf_realloc(struct rpcrdma_regbuf *rb, size_t size, + gfp_t flags); bool __rpcrdma_dma_map_regbuf(struct rpcrdma_ia *, struct rpcrdma_regbuf *); void rpcrdma_free_regbuf(struct rpcrdma_regbuf *); |