NFS: Use the inode->i_version to cache NFSv4 change attribute information

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Этот коммит содержится в:
Trond Myklebust
2011-10-17 16:08:46 -07:00
родитель 919066d690
Коммит a9a4a87a59
6 изменённых файлов: 14 добавлений и 15 удалений

Просмотреть файл

@@ -753,9 +753,9 @@ static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo)
spin_lock(&dir->i_lock);
nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA;
if (!cinfo->atomic || cinfo->before != nfsi->change_attr)
if (!cinfo->atomic || cinfo->before != dir->i_version)
nfs_force_lookup_revalidate(dir);
nfsi->change_attr = cinfo->after;
dir->i_version = cinfo->after;
spin_unlock(&dir->i_lock);
}