summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsctl.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-04-11 15:13:28 +0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-12 09:11:46 -0400
commite5f06f720eff24e32f1cc08ec03bcc8c4b2d2934 (patch)
tree9afeda20ea7ea07f6c1bbcc9dc5979c98cc62def /fs/nfsd/nfsctl.c
parentb3853e0ea1f2ef58f7e7c03e47819e2ae3766dea (diff)
downloadop-kernel-dev-e5f06f720eff24e32f1cc08ec03bcc8c4b2d2934.zip
op-kernel-dev-e5f06f720eff24e32f1cc08ec03bcc8c4b2d2934.tar.gz
nfsd: make expkey cache allocated per network namespace context
This patch also changes svcauth_unix_purge() function: added network namespace as a parameter and thus loop over all networks was replaced by only one call for ip map cache purge. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r--fs/nfsd/nfsctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index ddb9f87..b144177 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -129,13 +129,14 @@ static int exports_open(struct inode *inode, struct file *file)
{
int err;
struct seq_file *seq;
+ struct nfsd_net *nn = net_generic(&init_net, nfsd_net_id);
err = seq_open(file, &nfs_exports_op);
if (err)
return err;
seq = file->private_data;
- seq->private = &svc_export_cache;
+ seq->private = nn->svc_export_cache;
return 0;
}
OpenPOWER on IntegriCloud