aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-03-28 11:09:15 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:55:02 -0400
commit71234978e81ee515c8025d087a197561b311c183 (patch)
tree2efe1ee7b36cb9ad69449254e4866a047eba6137
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>
-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 64455292bbba..485c2afa96f7 100644
--- a/include/linux/nfsd/export.h
+++ b/include/linux/nfsd/export.h
@@ -147,7 +147,7 @@ extern struct cache_detail svc_export_cache;
147 147
148static inline void exp_put(struct svc_export *exp) 148static inline void exp_put(struct svc_export *exp)
149{ 149{
150 cache_put(&exp->h, &svc_export_cache); 150 cache_put(&exp->h, exp->cd);
151} 151}
152 152
153static inline void exp_get(struct svc_export *exp) 153static inline void exp_get(struct svc_export *exp)