diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-02-04 17:59:13 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-05 17:16:56 +0100 |
commit | 67b16625d17b7c2e5babbbe817e12ad37c3fe3f4 (patch) | |
tree | 871cb8cf724a497f9d05c34be43cad3ef77c6a20 /net/sunrpc/xprtrdma/xprt_rdma.h | |
parent | xprtrdma: Simplify rpcrdma_convert_kvec() and frwr_map() (diff) | |
download | linux-67b16625d17b7c2e5babbbe817e12ad37c3fe3f4.tar.xz linux-67b16625d17b7c2e5babbbe817e12ad37c3fe3f4.zip |
xprtrdma: Refactor invocations of offset_in_page()
Clean up so that offset_in_page() is invoked less often in the
most common case, which is mapping xdr->pages.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Tom Talpey <tom@talpey.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, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 02971e183989..ed1c5444fb9d 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h @@ -287,7 +287,7 @@ enum { struct rpcrdma_mr_seg { u32 mr_len; /* length of segment */ struct page *mr_page; /* underlying struct page */ - char *mr_offset; /* IN: page offset, OUT: iova */ + u64 mr_offset; /* IN: page offset, OUT: iova */ }; /* The Send SGE array is provisioned to send a maximum size |