diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-04-11 07:13:28 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-04-12 09:11:46 -0400 |
commit | e5f06f720eff24e32f1cc08ec03bcc8c4b2d2934 (patch) | |
tree | 9afeda20ea7ea07f6c1bbcc9dc5979c98cc62def /fs/nfsd/nfsctl.c | |
parent | b3853e0ea1f2ef58f7e7c03e47819e2ae3766dea (diff) |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index ddb9f8787379..b14417740816 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) | |||
129 | { | 129 | { |
130 | int err; | 130 | int err; |
131 | struct seq_file *seq; | 131 | struct seq_file *seq; |
132 | struct nfsd_net *nn = net_generic(&init_net, nfsd_net_id); | ||
132 | 133 | ||
133 | err = seq_open(file, &nfs_exports_op); | 134 | err = seq_open(file, &nfs_exports_op); |
134 | if (err) | 135 | if (err) |
135 | return err; | 136 | return err; |
136 | 137 | ||
137 | seq = file->private_data; | 138 | seq = file->private_data; |
138 | seq->private = &svc_export_cache; | 139 | seq->private = nn->svc_export_cache; |
139 | return 0; | 140 | return 0; |
140 | } | 141 | } |
141 | 142 | ||