From: Jeff Layton Date: Wed, 3 Jun 2015 20:14:29 +0000 (-0400) Subject: sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops X-Git-Tag: omap-for-v4.2/fixes-rc1^2~39^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d67fa4d85a2143b46052b2e9ccc6749a4c97b2de;p=pandora-kernel.git sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops RDMA xprts don't have a sock_xprt, but an rdma_xprt, so the xs_swapper_enable/disable functions will likely oops when fed an RDMA xprt. Turn these functions into rpc_xprt_ops so that that doesn't occur. For now the RDMA versions are no-ops that just return -EINVAL on an attempt to swapon. Cc: Chuck Lever Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed