diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2013-02-04 06:02:45 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-02-15 10:43:45 -0500 |
commit | 73fb847a44224d5708550e4be7baba9da75e00af (patch) | |
tree | 28046833f31b29bcea2a0af5e14d3d5c34723423 /fs/nfsd/export.c | |
parent | 462b8f6bf1d3f5feb7a346394036dbc1df3a8ed5 (diff) |
SUNRPC: introduce cache_detail->cache_request callback
This callback will allow to simplify upcalls in further patches in this
series.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r-- | fs/nfsd/export.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 8e9df45b3d3c..0e16c7fa6800 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -69,7 +69,7 @@ static void expkey_request(struct cache_detail *cd, | |||
69 | 69 | ||
70 | static int expkey_upcall(struct cache_detail *cd, struct cache_head *h) | 70 | static int expkey_upcall(struct cache_detail *cd, struct cache_head *h) |
71 | { | 71 | { |
72 | return sunrpc_cache_pipe_upcall(cd, h, expkey_request); | 72 | return sunrpc_cache_pipe_upcall(cd, h, cd->cache_request); |
73 | } | 73 | } |
74 | 74 | ||
75 | static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, | 75 | static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, |
@@ -246,6 +246,7 @@ static struct cache_detail svc_expkey_cache_template = { | |||
246 | .name = "nfsd.fh", | 246 | .name = "nfsd.fh", |
247 | .cache_put = expkey_put, | 247 | .cache_put = expkey_put, |
248 | .cache_upcall = expkey_upcall, | 248 | .cache_upcall = expkey_upcall, |
249 | .cache_request = expkey_request, | ||
249 | .cache_parse = expkey_parse, | 250 | .cache_parse = expkey_parse, |
250 | .cache_show = expkey_show, | 251 | .cache_show = expkey_show, |
251 | .match = expkey_match, | 252 | .match = expkey_match, |
@@ -340,7 +341,7 @@ static void svc_export_request(struct cache_detail *cd, | |||
340 | 341 | ||
341 | static int svc_export_upcall(struct cache_detail *cd, struct cache_head *h) | 342 | static int svc_export_upcall(struct cache_detail *cd, struct cache_head *h) |
342 | { | 343 | { |
343 | return sunrpc_cache_pipe_upcall(cd, h, svc_export_request); | 344 | return sunrpc_cache_pipe_upcall(cd, h, cd->cache_request); |
344 | } | 345 | } |
345 | 346 | ||
346 | static struct svc_export *svc_export_update(struct svc_export *new, | 347 | static struct svc_export *svc_export_update(struct svc_export *new, |
@@ -714,6 +715,7 @@ static struct cache_detail svc_export_cache_template = { | |||
714 | .name = "nfsd.export", | 715 | .name = "nfsd.export", |
715 | .cache_put = svc_export_put, | 716 | .cache_put = svc_export_put, |
716 | .cache_upcall = svc_export_upcall, | 717 | .cache_upcall = svc_export_upcall, |
718 | .cache_request = svc_export_request, | ||
717 | .cache_parse = svc_export_parse, | 719 | .cache_parse = svc_export_parse, |
718 | .cache_show = svc_export_show, | 720 | .cache_show = svc_export_show, |
719 | .match = svc_export_match, | 721 | .match = svc_export_match, |