aboutsummaryrefslogtreecommitdiff
path: root/include/linux/nfsd
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-03-28 19:09:15 +0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:55:02 -0400
commit71234978e81ee515c8025d087a197561b311c183 (patch)
tree2efe1ee7b36cb9ad69449254e4866a047eba6137 /include/linux/nfsd
parentdb3a35326362624dd4d8473e676d63afa52bedcc (diff)
nfsd: use cache detail pointer from svc_export structure on cache put
Hard-coded pointer is redundant now and can be replaced. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r--include/linux/nfsd/export.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h
index 64455292bbb..485c2afa96f 100644
--- a/include/linux/nfsd/export.h
+++ b/include/linux/nfsd/export.h
@@ -147,7 +147,7 @@ extern struct cache_detail svc_export_cache;
static inline void exp_put(struct svc_export *exp)
{
- cache_put(&exp->h, &svc_export_cache);
+ cache_put(&exp->h, exp->cd);
}
static inline void exp_get(struct svc_export *exp)