aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r--fs/nfsd/export.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index d29b70a28f2b..cbbc594ef592 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1637,13 +1637,19 @@ exp_verify_string(char *cp, int max)
1637/* 1637/*
1638 * Initialize the exports module. 1638 * Initialize the exports module.
1639 */ 1639 */
1640void 1640int
1641nfsd_export_init(void) 1641nfsd_export_init(void)
1642{ 1642{
1643 int rv;
1643 dprintk("nfsd: initializing export module.\n"); 1644 dprintk("nfsd: initializing export module.\n");
1644 1645
1645 cache_register(&svc_export_cache); 1646 rv = cache_register(&svc_export_cache);
1646 cache_register(&svc_expkey_cache); 1647 if (rv)
1648 return rv;
1649 rv = cache_register(&svc_expkey_cache);
1650 if (rv)
1651 cache_unregister(&svc_export_cache);
1652 return rv;
1647 1653
1648} 1654}
1649 1655