diff options
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index 71ec8530ec8c..6138c925923d 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c | |||
@@ -347,17 +347,12 @@ static inline int ip_map_update(struct net *net, struct ip_map *ipm, | |||
347 | return __ip_map_update(sn->ip_map_cache, ipm, udom, expiry); | 347 | return __ip_map_update(sn->ip_map_cache, ipm, udom, expiry); |
348 | } | 348 | } |
349 | 349 | ||
350 | 350 | void svcauth_unix_purge(struct net *net) | |
351 | void svcauth_unix_purge(void) | ||
352 | { | 351 | { |
353 | struct net *net; | 352 | struct sunrpc_net *sn; |
354 | |||
355 | for_each_net(net) { | ||
356 | struct sunrpc_net *sn; | ||
357 | 353 | ||
358 | sn = net_generic(net, sunrpc_net_id); | 354 | sn = net_generic(net, sunrpc_net_id); |
359 | cache_purge(sn->ip_map_cache); | 355 | cache_purge(sn->ip_map_cache); |
360 | } | ||
361 | } | 356 | } |
362 | EXPORT_SYMBOL_GPL(svcauth_unix_purge); | 357 | EXPORT_SYMBOL_GPL(svcauth_unix_purge); |
363 | 358 | ||