diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-27 13:58:42 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 10:16:11 -0400 |
commit | e3bfca01c1ad378deaee598292bcc7ee19024563 (patch) | |
tree | bc4a89934cfb309f3d835917257e17e5d5236c6c /net/sunrpc/svcauth_unix.c | |
parent | bf18ab32ff2a50a3d13d559f26f94ecfba131f24 (diff) | |
download | kernel_samsung_aries-e3bfca01c1ad378deaee598292bcc7ee19024563.zip kernel_samsung_aries-e3bfca01c1ad378deaee598292bcc7ee19024563.tar.gz kernel_samsung_aries-e3bfca01c1ad378deaee598292bcc7ee19024563.tar.bz2 |
sunrpc: Make xprt auth cache release work with the xprt
This is done in order to facilitate getting the ip_map_cache from
which to put the ip_map.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index 31b99c5..49e39ff 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c @@ -472,10 +472,13 @@ ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm) } void -svcauth_unix_info_release(void *info) +svcauth_unix_info_release(struct svc_xprt *xpt) { - struct ip_map *ipm = info; - cache_put(&ipm->h, &ip_map_cache); + struct ip_map *ipm; + + ipm = xpt->xpt_auth_cache; + if (ipm != NULL) + cache_put(&ipm->h, &ip_map_cache); } /**************************************************************************** |