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:
Casey Bodley 2010-10-11 16:07:02 -04:00
parent 61ddf671fa
commit bc81c3f6f5

View file

@ -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;