xprtrdma: Refactor invocations of offset_in_page()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 4 Feb 2021 16:59:13 +0000 (11:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 5 Feb 2021 16:16:56 +0000 (11:16 -0500)
commit67b16625d17b7c2e5babbbe817e12ad37c3fe3f4
tree871cb8cf724a497f9d05c34be43cad3ef77c6a20
parent54e6aec57c251e36a4c3153ccfee9538f2ec1bcf
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>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/xprt_rdma.h