]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sunrpc/xprtrdma/verbs.c
xprtrdma: Eliminate per-transport "max pages"
[linux.git] / net / sunrpc / xprtrdma / verbs.c
index 766e77592cfd98924010f5a71a42c5025f102689..21fc5766dcde9995f4d57441e1da73981419a77c 100644 (file)
@@ -936,7 +936,7 @@ rpcrdma_mrs_create(struct rpcrdma_xprt *r_xprt)
        struct rpcrdma_ia *ia = &r_xprt->rx_ia;
        unsigned int count;
 
-       for (count = 0; count < ia->ri_max_segs; count++) {
+       for (count = 0; count < ia->ri_max_rdma_segs; count++) {
                struct rpcrdma_mr *mr;
                int rc;
 
@@ -1018,7 +1018,7 @@ struct rpcrdma_req *rpcrdma_req_create(struct rpcrdma_xprt *r_xprt, size_t size,
 
        /* Compute maximum header buffer size in bytes */
        maxhdrsize = rpcrdma_fixed_maxsz + 3 +
-                    r_xprt->rx_ia.ri_max_segs * rpcrdma_readchunk_maxsz;
+                    r_xprt->rx_ia.ri_max_rdma_segs * rpcrdma_readchunk_maxsz;
        maxhdrsize *= sizeof(__be32);
        rb = rpcrdma_regbuf_alloc(__roundup_pow_of_two(maxhdrsize),
                                  DMA_TO_DEVICE, flags);