diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-07-25 16:57:06 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-07-28 00:49:21 +0400 |
commit | 9695c7057f4887ed54dc1e6c2ef22f72a2be1175 (patch) | |
tree | a9ca62e819e904d9b53629f1b7c45126416a2395 /include/linux/sunrpc/svc.h | |
parent | 5e1533c7880bb0df98f71fa683979ec296aa947d (diff) | |
download | linux-9695c7057f4887ed54dc1e6c2ef22f72a2be1175.tar.xz |
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 'include/linux/sunrpc/svc.h')
-rw-r--r-- | include/linux/sunrpc/svc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 40e0a273faea..d83db800fe02 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -278,6 +278,8 @@ struct svc_rqst { struct task_struct *rq_task; /* service thread */ }; +#define SVC_NET(svc_rqst) (svc_rqst->rq_xprt->xpt_net) + /* * Rigorous type checking on sockaddr type conversions */ |