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.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c
index 13369650cdf9..dea690aa8bb5 100644
--- a/fs/nfsd/nfs4idmap.c
+++ b/fs/nfsd/nfs4idmap.c
@@ -76,12 +76,6 @@ struct ent {
76 char authname[IDMAP_NAMESZ]; 76 char authname[IDMAP_NAMESZ];
77}; 77};
78 78
79#define DefineSimpleCacheLookupMap(STRUCT, FUNC) \
80 DefineCacheLookup(struct STRUCT, h, FUNC##_lookup, \
81 (struct STRUCT *item, int set), /*no setup */, \
82 & FUNC##_cache, FUNC##_hash(item), FUNC##_match(item, tmp), \
83 STRUCT##_init(new, item), STRUCT##_update(tmp, item), 0)
84
85/* Common entry handling */ 79/* Common entry handling */
86 80
87#define ENT_HASHBITS 8 81#define ENT_HASHBITS 8
@@ -264,7 +258,7 @@ out:
264 return error; 258 return error;
265} 259}
266 260
267static DefineSimpleCacheLookupMap(ent, idtoname); 261static DefineSimpleCacheLookup(ent, idtoname);
268 262
269/* 263/*
270 * Name -> ID cache 264 * Name -> ID cache
@@ -390,7 +384,7 @@ out:
390 return (error); 384 return (error);
391} 385}
392 386
393static DefineSimpleCacheLookupMap(ent, nametoid); 387static DefineSimpleCacheLookup(ent, nametoid);
394 388
395/* 389/*
396 * Exported API 390 * Exported API