patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / afs / dir.c
index d19e7c5..7fcdd24 100644 (file)
@@ -615,7 +615,9 @@ static int afs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
 
        /* the dirent, if it exists, now points to a different vnode */
  not_found:
+       spin_lock(&dentry->d_lock);
        dentry->d_flags |= DCACHE_NFSFS_RENAMED;
+       spin_unlock(&dentry->d_lock);
 
  out_bad:
        if (inode) {