Whamcloud - gitweb
LU-15971 llite: implicit default LMV inherit
[fs/lustre-release.git] / lustre / llite / statahead.c
index b546b68..6d056fc 100644 (file)
@@ -1625,10 +1625,10 @@ static int revalidate_statahead_dentry(struct inode *dir,
                                GOTO(out, rc = -ESTALE);
                        }
 
-                       if ((bits & MDS_INODELOCK_LOOKUP) &&
-                           d_lustre_invalid(*dentryp)) {
+                       if (bits & MDS_INODELOCK_LOOKUP) {
                                d_lustre_revalidate(*dentryp);
-                               ll_update_dir_depth(dir, (*dentryp)->d_inode);
+                               if (S_ISDIR(inode->i_mode))
+                                       ll_update_dir_depth_dmv(dir, *dentryp);
                        }
 
                        ll_intent_release(&it);