aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-06-01 11:50:58 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-06-18 13:47:18 -0400
commitc8d74d9b68b655e85ee4603f8918c3233a74f085 (patch)
tree922702a30aa763801e6bca0933724a146e928c34 /fs/nfs/inode.c
parente401452d923de5b27f61f707773ec38f5593d985 (diff)
NFSv4: Move the DNS resolver into the NFSv4 module
The other protocols don't use it, so make it local to NFSv4, and remove the EXPORT. Also ensure that we only compile in cache_lib.o if we're using the legacy DNS resolver. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Bryan Schumaker <bjschuma@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index c121982659a2..e09920cacd8b 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -48,7 +48,6 @@
48#include "iostat.h" 48#include "iostat.h"
49#include "internal.h" 49#include "internal.h"
50#include "fscache.h" 50#include "fscache.h"
51#include "dns_resolve.h"
52#include "pnfs.h" 51#include "pnfs.h"
53#include "nfs.h" 52#include "nfs.h"
54#include "netns.h" 53#include "netns.h"
@@ -1646,12 +1645,11 @@ EXPORT_SYMBOL_GPL(nfs_net_id);
1646static int nfs_net_init(struct net *net) 1645static int nfs_net_init(struct net *net)
1647{ 1646{
1648 nfs_clients_init(net); 1647 nfs_clients_init(net);
1649 return nfs_dns_resolver_cache_init(net); 1648 return 0;
1650} 1649}
1651 1650
1652static void nfs_net_exit(struct net *net) 1651static void nfs_net_exit(struct net *net)
1653{ 1652{
1654 nfs_dns_resolver_cache_destroy(net);
1655 nfs_cleanup_cb_ident_idr(net); 1653 nfs_cleanup_cb_ident_idr(net);
1656} 1654}
1657 1655
@@ -1669,10 +1667,6 @@ static int __init init_nfs_fs(void)
1669{ 1667{
1670 int err; 1668 int err;
1671 1669
1672 err = nfs_dns_resolver_init();
1673 if (err < 0)
1674 goto out10;;
1675
1676 err = register_pernet_subsys(&nfs_net_ops); 1670 err = register_pernet_subsys(&nfs_net_ops);
1677 if (err < 0) 1671 if (err < 0)
1678 goto out9; 1672 goto out9;
@@ -1738,8 +1732,6 @@ out7:
1738out8: 1732out8:
1739 unregister_pernet_subsys(&nfs_net_ops); 1733 unregister_pernet_subsys(&nfs_net_ops);
1740out9: 1734out9:
1741 nfs_dns_resolver_destroy();
1742out10:
1743 return err; 1735 return err;
1744} 1736}
1745 1737
@@ -1752,7 +1744,6 @@ static void __exit exit_nfs_fs(void)
1752 nfs_destroy_nfspagecache(); 1744 nfs_destroy_nfspagecache();
1753 nfs_fscache_unregister(); 1745 nfs_fscache_unregister();
1754 unregister_pernet_subsys(&nfs_net_ops); 1746 unregister_pernet_subsys(&nfs_net_ops);
1755 nfs_dns_resolver_destroy();
1756#ifdef CONFIG_PROC_FS 1747#ifdef CONFIG_PROC_FS
1757 rpc_proc_unregister(&init_net, "nfs"); 1748 rpc_proc_unregister(&init_net, "nfs");
1758#endif 1749#endif