diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2011-12-07 12:57:56 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-12-07 15:27:46 -0500 |
commit | f5c8593b94190aabdcf207a544f082c7816c4fe6 (patch) | |
tree | e0f4d5bd999cba6ec806216aeffd3953c480f295 /fs/nfsd/export.c | |
parent | bd4620ddf6d6eb3d9e7d073ad601fa4299d46ba9 (diff) | |
download | talos-obmc-linux-f5c8593b94190aabdcf207a544f082c7816c4fe6.tar.gz talos-obmc-linux-f5c8593b94190aabdcf207a544f082c7816c4fe6.zip |
NFSd: use network-namespace-aware cache registering routines
v2: cache_register_net() and cache_unregister_net() GPL exports added
This is a cleanup patch. Hope, some day generic cache_register() and
cache_unregister() will be removed.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r-- | fs/nfsd/export.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 5f312abf1247..cf8a6bd062fa 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -1226,12 +1226,12 @@ nfsd_export_init(void) int rv; dprintk("nfsd: initializing export module.\n"); - rv = cache_register(&svc_export_cache); + rv = cache_register_net(&svc_export_cache, &init_net); if (rv) return rv; - rv = cache_register(&svc_expkey_cache); + rv = cache_register_net(&svc_expkey_cache, &init_net); if (rv) - cache_unregister(&svc_export_cache); + cache_unregister_net(&svc_export_cache, &init_net); return rv; } @@ -1255,8 +1255,8 @@ nfsd_export_shutdown(void) dprintk("nfsd: shutting down export module.\n"); - cache_unregister(&svc_expkey_cache); - cache_unregister(&svc_export_cache); + cache_unregister_net(&svc_expkey_cache, &init_net); + cache_unregister_net(&svc_export_cache, &init_net); svcauth_unix_purge(); dprintk("nfsd: export shutdown complete.\n"); |