aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4idmap.c')
-rw-r--r--fs/nfsd/nfs4idmap.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c
index 0ce12346df9c..4832fd819f88 100644
--- a/fs/nfsd/nfs4idmap.c
+++ b/fs/nfsd/nfs4idmap.c
@@ -140,12 +140,6 @@ idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp,
140} 140}
141 141
142static int 142static int
143idtoname_upcall(struct cache_detail *cd, struct cache_head *ch)
144{
145 return sunrpc_cache_pipe_upcall(cd, ch, idtoname_request);
146}
147
148static int
149idtoname_match(struct cache_head *ca, struct cache_head *cb) 143idtoname_match(struct cache_head *ca, struct cache_head *cb)
150{ 144{
151 struct ent *a = container_of(ca, struct ent, h); 145 struct ent *a = container_of(ca, struct ent, h);
@@ -192,7 +186,7 @@ static struct cache_detail idtoname_cache_template = {
192 .hash_size = ENT_HASHMAX, 186 .hash_size = ENT_HASHMAX,
193 .name = "nfs4.idtoname", 187 .name = "nfs4.idtoname",
194 .cache_put = ent_put, 188 .cache_put = ent_put,
195 .cache_upcall = idtoname_upcall, 189 .cache_request = idtoname_request,
196 .cache_parse = idtoname_parse, 190 .cache_parse = idtoname_parse,
197 .cache_show = idtoname_show, 191 .cache_show = idtoname_show,
198 .warn_no_listener = warn_no_idmapd, 192 .warn_no_listener = warn_no_idmapd,
@@ -321,12 +315,6 @@ nametoid_request(struct cache_detail *cd, struct cache_head *ch, char **bpp,
321} 315}
322 316
323static int 317static int
324nametoid_upcall(struct cache_detail *cd, struct cache_head *ch)
325{
326 return sunrpc_cache_pipe_upcall(cd, ch, nametoid_request);
327}
328
329static int
330nametoid_match(struct cache_head *ca, struct cache_head *cb) 318nametoid_match(struct cache_head *ca, struct cache_head *cb)
331{ 319{
332 struct ent *a = container_of(ca, struct ent, h); 320 struct ent *a = container_of(ca, struct ent, h);
@@ -365,7 +353,7 @@ static struct cache_detail nametoid_cache_template = {
365 .hash_size = ENT_HASHMAX, 353 .hash_size = ENT_HASHMAX,
366 .name = "nfs4.nametoid", 354 .name = "nfs4.nametoid",
367 .cache_put = ent_put, 355 .cache_put = ent_put,
368 .cache_upcall = nametoid_upcall, 356 .cache_request = nametoid_request,
369 .cache_parse = nametoid_parse, 357 .cache_parse = nametoid_parse,
370 .cache_show = nametoid_show, 358 .cache_show = nametoid_show,
371 .warn_no_listener = warn_no_idmapd, 359 .warn_no_listener = warn_no_idmapd,