aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-03-28 11:09:22 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:55:02 -0400
commita09581f29434ae67f8fc6ae487e4f30a7f0d019f (patch)
tree1cde7fcd7cf89ed98f92dc26b2439e335251be11 /fs/nfsd
parent71234978e81ee515c8025d087a197561b311c183 (diff)
nfsd: use exp_put() for svc_export_cache put
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/export.c2
-rw-r--r--fs/nfsd/nfsfh.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 99ea4c00240c..c20a405b5862 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1205,7 +1205,7 @@ static int e_show(struct seq_file *m, void *p)
1205 cache_get(&exp->h); 1205 cache_get(&exp->h);
1206 if (cache_check(&svc_export_cache, &exp->h, NULL)) 1206 if (cache_check(&svc_export_cache, &exp->h, NULL))
1207 return 0; 1207 return 0;
1208 cache_put(&exp->h, &svc_export_cache); 1208 exp_put(exp);
1209 return svc_export_show(m, &svc_export_cache, cp); 1209 return svc_export_show(m, &svc_export_cache, cp);
1210} 1210}
1211 1211
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index 68454e75fce9..cc793005a87c 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -636,7 +636,7 @@ fh_put(struct svc_fh *fhp)
636#endif 636#endif
637 } 637 }
638 if (exp) { 638 if (exp) {
639 cache_put(&exp->h, &svc_export_cache); 639 exp_put(exp);
640 fhp->fh_export = NULL; 640 fhp->fh_export = NULL;
641 } 641 }
642 return; 642 return;