OSDN Git Service

nfsd: use exp_put() for svc_export_cache put
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 28 Mar 2012 15:09:22 +0000 (19:09 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Apr 2012 21:55:02 +0000 (17:55 -0400)
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>
fs/nfsd/export.c
fs/nfsd/nfsfh.c

index 99ea4c0..c20a405 100644 (file)
@@ -1205,7 +1205,7 @@ static int e_show(struct seq_file *m, void *p)
        cache_get(&exp->h);
        if (cache_check(&svc_export_cache, &exp->h, NULL))
                return 0;
-       cache_put(&exp->h, &svc_export_cache);
+       exp_put(exp);
        return svc_export_show(m, &svc_export_cache, cp);
 }
 
index 68454e7..cc79300 100644 (file)
@@ -636,7 +636,7 @@ fh_put(struct svc_fh *fhp)
 #endif
        }
        if (exp) {
-               cache_put(&exp->h, &svc_export_cache);
+               exp_put(exp);
                fhp->fh_export = NULL;
        }
        return;