diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2016-03-04 11:27:35 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-03-14 14:55:47 -0400 |
commit | 4d97291b6fb46e31fcb03876595d49b477ac196d (patch) | |
tree | 683651ecb08fa2c365a3211f8d7ded6b4c634031 /net/sunrpc | |
parent | 66cede527924543e0ff9414e6be65a923cbce10a (diff) | |
download | linux-4d97291b6fb46e31fcb03876595d49b477ac196d.tar.gz linux-4d97291b6fb46e31fcb03876595d49b477ac196d.tar.bz2 linux-4d97291b6fb46e31fcb03876595d49b477ac196d.zip |
xprtrdma: Clean up physical_op_map()
physical_op_unmap{_sync} don't use mr_nsegs, so don't bother to set
it in physical_op_map.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtrdma/physical_ops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/physical_ops.c b/net/sunrpc/xprtrdma/physical_ops.c index dbb302ecf590..481b9b6f4a15 100644 --- a/net/sunrpc/xprtrdma/physical_ops.c +++ b/net/sunrpc/xprtrdma/physical_ops.c @@ -68,7 +68,6 @@ physical_op_map(struct rpcrdma_xprt *r_xprt, struct rpcrdma_mr_seg *seg, rpcrdma_map_one(ia->ri_device, seg, rpcrdma_data_dir(writing)); seg->mr_rkey = ia->ri_dma_mr->rkey; seg->mr_base = seg->mr_dma; - seg->mr_nsegs = 1; return 1; } |