Skip to content

Commit d4bb527

Browse files
Stanislav KinsburskyJ. Bruce Fields
authored andcommitted
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>
1 parent 33dcc48 commit d4bb527

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/nfsd/export.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
163163
cache_flush();
164164
out:
165165
if (ek)
166-
cache_put(&ek->h, &svc_expkey_cache);
166+
cache_put(&ek->h, cd);
167167
if (dom)
168168
auth_domain_put(dom);
169169
kfree(buf);

0 commit comments

Comments
 (0)