Skip to content

Commit

Permalink
nfsd: use passed cache_detail pointer expkey_parse()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Apr 11, 2012
1 parent 33dcc48 commit d4bb527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
cache_flush();
out:
if (ek)
cache_put(&ek->h, &svc_expkey_cache);
cache_put(&ek->h, cd);
if (dom)
auth_domain_put(dom);
kfree(buf);
Expand Down

0 comments on commit d4bb527

Please sign in to comment.