diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-31 21:18:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-31 21:18:11 -0400 |
commit | a00b6151a2ae4c52576c35d3998e144a993d50b8 (patch) | |
tree | fc312be05c4deb4dead7a6afa09e88017d3a0146 /net/sunrpc/svcauth_unix.c | |
parent | 08615d7d85e5aa02c05bf6c4dde87d940e7f85f6 (diff) | |
parent | b108fe6b08f3f61c2c465649b20b7d4b4c185728 (diff) |
Merge branch 'for-3.5-take-2' of git://linux-nfs.org/~bfields/linux
Pull nfsd update from Bruce Fields.
* 'for-3.5-take-2' of git://linux-nfs.org/~bfields/linux: (23 commits)
nfsd: trivial: use SEEK_SET instead of 0 in vfs_llseek
SUNRPC: split upcall function to extract reusable parts
nfsd: allocate id-to-name and name-to-id caches in per-net operations.
nfsd: make name-to-id cache allocated per network namespace context
nfsd: make id-to-name cache allocated per network namespace context
nfsd: pass network context to idmap init/exit functions
nfsd: allocate export and expkey caches in per-net operations.
nfsd: make expkey cache allocated per network namespace context
nfsd: make export cache allocated per network namespace context
nfsd: pass pointer to export cache down to stack wherever possible.
nfsd: pass network context to export caches init/shutdown routines
Lockd: pass network namespace to creation and destruction routines
NFSd: remove hard-coded dereferences to name-to-id and id-to-name caches
nfsd: pass pointer to expkey cache down to stack wherever possible.
nfsd: use hash table from cache detail in nfsd export seq ops
nfsd: pass svc_export_cache pointer as private data to "exports" seq file ops
nfsd: use exp_put() for svc_export_cache put
nfsd: use cache detail pointer from svc_export structure on cache put
nfsd: add link to owner cache detail to svc_export structure
nfsd: use passed cache_detail pointer expkey_parse()
...
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 | ||