diff --git a/lustre/llite/file.c b/lustre/llite/file.c index cf0ee8d019995fdf71ce35ab99c4f42fdfbd95d2..b1c172cd1e5e4d90bb9e896e5b94aa43ec47149a 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -1481,16 +1481,7 @@ int ll_inode_revalidate_it(struct dentry *dentry, struct lookup_intent *it) 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); - dentry->d_flags &= ~DCACHE_LUSTRE_INVALID; - lsm = lli->lli_smd; if (lsm == NULL) /* object not yet allocated, don't validate size */