namecache: fix for numlinks on remove
nfs41_name_cache_remove() needs to update the 'numlinks' attribute for other links, even if the file being removed is not found in the cache. to search for its attr cache entry, nfs41_name_cache_remove() now requires a fileid argument. nfs41_remove() only gets a pointer to the parent's filehandle, so it also needs the target fileid argument Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
06b025a89c
commit
f988c89bf4
7 changed files with 29 additions and 12 deletions
|
|
@ -1147,7 +1147,8 @@ int nfs41_cached_getattr(
|
|||
int nfs41_remove(
|
||||
IN nfs41_session *session,
|
||||
IN nfs41_path_fh *parent,
|
||||
IN const nfs41_component *target);
|
||||
IN const nfs41_component *target,
|
||||
IN uint64_t fileid);
|
||||
|
||||
int nfs41_rename(
|
||||
IN nfs41_session *session,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue