]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nfsd: use cache detail pointer from svc_export structure on cache put
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 28 Mar 2012 15:09:15 +0000 (19:09 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Apr 2012 21:55:02 +0000 (17:55 -0400)
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>
include/linux/nfsd/export.h

index 64455292bbba9ad8fcacaf6dabf78878479ee246..485c2afa96f715a8ebc1f25d6a1831a1d68fc3cb 100644 (file)
@@ -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)