From 2082db420b021d8b030ff7104929efe7c6c3409a Mon Sep 17 00:00:00 2001 From: green Date: Sun, 27 Feb 2005 20:17:08 +0000 Subject: [PATCH] b=5230 r=adilger Do not rehash dentries in ll_inode_revalidate_it(), it is only supposed to update inodes. --- lustre/llite/file.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index cf0ee8d..b1c172c 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 */ -- 1.8.3.1