name cache: insert supports negative entries
marked nfs41_name_cache_insert() parameters fh and info as OPTIONAL; passing NULL designates a negative lookup entry name_cache_entry_create() no longer calls attr_cache_find_or_create(), and doesn't need the 'fileid' argument name_cache_entry_update() also makes fh and info OPTIONAL, and handles the cases where we switch from a negative <-> positive entry, calling attr_cache_find_or_create() or attr_cache_entry_deref() as appropriate removed unused function name_cache_find_or_create(); everything uses name_cache_entry_find_or_create() instead, so renamed that to name_cache_find_or_create() Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
parent
112313bc45
commit
6bc86c1bff
2 changed files with 44 additions and 65 deletions
|
|
@ -73,8 +73,8 @@ int nfs41_name_cache_insert(
|
|||
IN struct nfs41_name_cache *cache,
|
||||
IN const char *path,
|
||||
IN const nfs41_component *name,
|
||||
IN const nfs41_fh *fh,
|
||||
IN const nfs41_file_info *info,
|
||||
IN OPTIONAL const nfs41_fh *fh,
|
||||
IN OPTIONAL const nfs41_file_info *info,
|
||||
IN OPTIONAL const change_info4 *cinfo);
|
||||
|
||||
int nfs41_name_cache_remove(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue