[PATCH] knfsd: Get rid of 'inplace' sunrpc caches

These were an unnecessary wart.  Also only have one 'DefineSimpleCache..'
instead of two.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
NeilBrown
2006-03-27 01:15:01 -08:00
committed by Linus Torvalds
parent eab7e2e647
commit 7d317f2c9f
5 changed files with 18 additions and 30 deletions

View File

@@ -76,12 +76,6 @@ struct ent {
char authname[IDMAP_NAMESZ];
};
#define DefineSimpleCacheLookupMap(STRUCT, FUNC) \
DefineCacheLookup(struct STRUCT, h, FUNC##_lookup, \
(struct STRUCT *item, int set), /*no setup */, \
& FUNC##_cache, FUNC##_hash(item), FUNC##_match(item, tmp), \
STRUCT##_init(new, item), STRUCT##_update(tmp, item), 0)
/* Common entry handling */
#define ENT_HASHBITS 8
@@ -264,7 +258,7 @@ out:
return error;
}
static DefineSimpleCacheLookupMap(ent, idtoname);
static DefineSimpleCacheLookup(ent, idtoname);
/*
* Name -> ID cache
@@ -390,7 +384,7 @@ out:
return (error);
}
static DefineSimpleCacheLookupMap(ent, nametoid);
static DefineSimpleCacheLookup(ent, nametoid);
/*
* Exported API