Skip to content

Commit

Permalink
nfsd: use exp_put() for svc_export_cache put
Browse files Browse the repository at this point in the history
This patch replaces cache_put() call for svc_export_cache by exp_put() call.

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 7123497 commit a09581f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ static int e_show(struct seq_file *m, void *p)
cache_get(&exp->h);
if (cache_check(&svc_export_cache, &exp->h, NULL))
return 0;
cache_put(&exp->h, &svc_export_cache);
exp_put(exp);
return svc_export_show(m, &svc_export_cache, cp);
}

Expand Down
2 changes: 1 addition & 1 deletion fs/nfsd/nfsfh.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ fh_put(struct svc_fh *fhp)
#endif
}
if (exp) {
cache_put(&exp->h, &svc_export_cache);
exp_put(exp);
fhp->fh_export = NULL;
}
return;
Expand Down

0 comments on commit a09581f

Please sign in to comment.