Whamcloud - gitweb
b=5230
authorgreen <green>
Sun, 27 Feb 2005 20:17:08 +0000 (20:17 +0000)
committergreen <green>
Sun, 27 Feb 2005 20:17:08 +0000 (20:17 +0000)
r=adilger
Do not rehash dentries in ll_inode_revalidate_it(), it is only supposed to
update inodes.

lustre/llite/file.c

index cf0ee8d..b1c172c 100644 (file)
@@ -1481,16 +1481,7 @@ int ll_inode_revalidate_it(struct dentry *dentry, struct lookup_intent *it)
                 GOTO(out, rc);
         }
 
                 GOTO(out, rc);
         }
 
-        if (dentry->d_iname[0] != '/') { /* Do not rehash root of the tree
-                                            dentries */
-                spin_lock(&dcache_lock);
-                hlist_del_init(&dentry->d_hash);
-                __d_rehash(dentry, 0);
-                spin_unlock(&dcache_lock);
-        }
         ll_lookup_finish_locks(&oit, dentry);
         ll_lookup_finish_locks(&oit, dentry);
-        dentry->d_flags &= ~DCACHE_LUSTRE_INVALID;
-
 
         lsm = lli->lli_smd;
         if (lsm == NULL) /* object not yet allocated, don't validate size */
 
         lsm = lli->lli_smd;
         if (lsm == NULL) /* object not yet allocated, don't validate size */