aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-07-25 08:57:06 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-07-27 16:49:21 -0400
commit9695c7057f4887ed54dc1e6c2ef22f72a2be1175 (patch)
treea9ca62e819e904d9b53629f1b7c45126416a2395 /fs/lockd
parent5e1533c7880bb0df98f71fa683979ec296aa947d (diff)
SUNRPC: service request network namespace helper introduced
This is a cleanup patch - makes code looks simplier. It replaces widely used rqstp->rq_xprt->xpt_net by introduced SVC_NET(rqstp). Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 0084ab853a2b..f9b22e58f78f 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -331,7 +331,7 @@ struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp,
331 struct nsm_handle *nsm = NULL; 331 struct nsm_handle *nsm = NULL;
332 struct sockaddr *src_sap = svc_daddr(rqstp); 332 struct sockaddr *src_sap = svc_daddr(rqstp);
333 size_t src_len = rqstp->rq_daddrlen; 333 size_t src_len = rqstp->rq_daddrlen;
334 struct net *net = rqstp->rq_xprt->xpt_net; 334 struct net *net = SVC_NET(rqstp);
335 struct nlm_lookup_host_info ni = { 335 struct nlm_lookup_host_info ni = {
336 .server = 1, 336 .server = 1,
337 .sap = svc_addr(rqstp), 337 .sap = svc_addr(rqstp),