nfs: make the rpc_stat per net namespace
[linux-2.6-microblaze.git] / fs / nfs / inode.c
index e11e9c3..91b4d81 100644 (file)
@@ -2426,8 +2426,10 @@ EXPORT_SYMBOL_GPL(nfs_net_id);
 
 static int nfs_net_init(struct net *net)
 {
+       struct nfs_net *nn = net_generic(net, nfs_net_id);
+
        nfs_clients_init(net);
-       rpc_proc_register(net, &nfs_rpcstat);
+       rpc_proc_register(net, &nn->rpcstats);
        return nfs_fs_proc_net_init(net);
 }