diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-03-28 11:09:01 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-04-11 17:55:00 -0400 |
commit | d4bb527e9e6c00e6e24f3475fe65db7775ff6c63 (patch) | |
tree | de2e533486768f53da9e445e792ff5d28c0b30e1 /fs | |
parent | 33dcc481eddc3f532732a9582095373fa5354369 (diff) |
nfsd: use passed cache_detail pointer expkey_parse()
Using of hard-coded svc_expkey_cache pointer in expkey_parse() looks redundant.
Moreover, global cache will be replaced with per-net instance soon.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 8e9689abbc0c..71c5ce35a1a5 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -163,7 +163,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) | |||
163 | cache_flush(); | 163 | cache_flush(); |
164 | out: | 164 | out: |
165 | if (ek) | 165 | if (ek) |
166 | cache_put(&ek->h, &svc_expkey_cache); | 166 | cache_put(&ek->h, cd); |
167 | if (dom) | 167 | if (dom) |
168 | auth_domain_put(dom); | 168 | auth_domain_put(dom); |
169 | kfree(buf); | 169 | kfree(buf); |