nfsd: use passed cache_detail pointer expkey_parse()
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 28 Mar 2012 15:09:01 +0000 (19:09 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Apr 2012 21:55:00 +0000 (17:55 -0400)
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>
fs/nfsd/export.c

index 8e9689abbc0c7594fb6aa6cb7fb7735018165162..71c5ce35a1a5470ae6071d18cd06be0d3427e22a 100644 (file)
@@ -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);