]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita87a99baaa47f4c4aaa880a7fb710ea4363b788d
tree871cb8cf724a497f9d05c34be43cad3ef77c6a20
parent5e4862d92ad2e5dde9a0f2f0332702047c5811d8
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