diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-03-28 11:09:15 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-04-11 17:55:02 -0400 |
commit | 71234978e81ee515c8025d087a197561b311c183 (patch) | |
tree | 2efe1ee7b36cb9ad69449254e4866a047eba6137 | |
parent | db3a35326362624dd4d8473e676d63afa52bedcc (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.h | 2 |
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 | ||
148 | static inline void exp_put(struct svc_export *exp) | 148 | static 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 | ||
153 | static inline void exp_get(struct svc_export *exp) | 153 | static inline void exp_get(struct svc_export *exp) |