name cache: negative entries ignore change_info
negative lookup entries don't have attributes, so we won't invalidate them based on 'change'. name_cache_entry_changed() returns false if entry->attributes == NULL Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
parent
61ddf671fa
commit
bc81c3f6f5
1 changed files with 3 additions and 0 deletions
|
|
@ -488,6 +488,9 @@ static int name_cache_entry_changed(
|
||||||
IN struct name_cache_entry *entry,
|
IN struct name_cache_entry *entry,
|
||||||
IN const change_info4 *cinfo)
|
IN const change_info4 *cinfo)
|
||||||
{
|
{
|
||||||
|
if (entry->attributes == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (cinfo->after == entry->attributes->change ||
|
if (cinfo->after == entry->attributes->change ||
|
||||||
(cinfo->atomic && cinfo->before == entry->attributes->change)) {
|
(cinfo->atomic && cinfo->before == entry->attributes->change)) {
|
||||||
entry->attributes->change = cinfo->after;
|
entry->attributes->change = cinfo->after;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue