diff --git a/src/add-ons/kernel/file_systems/nfs4/DirectoryCache.cpp b/src/add-ons/kernel/file_systems/nfs4/DirectoryCache.cpp index c40707a35d..577a8a7f56 100644 --- a/src/add-ons/kernel/file_systems/nfs4/DirectoryCache.cpp +++ b/src/add-ons/kernel/file_systems/nfs4/DirectoryCache.cpp @@ -334,7 +334,7 @@ DirectoryCache::NotifyChanges(DirectoryCacheSnapshot* oldSnapshot, while (oldCurrent != NULL) { if (fAttrDir) { notify_attribute_changed(fInode->GetFileSystem()->DevId(), - fInode->ID(), newCurrent->fName, B_ATTR_REMOVED); + fInode->ID(), oldCurrent->fName, B_ATTR_REMOVED); } else { notify_entry_removed(fInode->GetFileSystem()->DevId(), fInode->ID(), oldCurrent->fName, oldCurrent->fNode);