Whamcloud - gitweb
b=19151
[fs/lustre-release.git] / lustre / llite / dcache.c
index 02aeac5..cf1f734 100644 (file)
@@ -394,7 +394,11 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags,
         }
 
         /* Never execute intents for mount points.
-         * need to get attributes in case it got changed from other client */
+         * Attributes will be fixed up in ll_inode_revalidate_it */
+        if (d_mountpoint(de))
+                GOTO(out_sa, rc = 1);
+
+        /* need to get attributes in case root got changed from other client */
         if (de == de->d_sb->s_root) {
                 rc = __ll_inode_revalidate_it(de, it, MDS_INODELOCK_LOOKUP);
                 if (rc == 0)
@@ -402,9 +406,6 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags,
                 GOTO(out_sa, rc);
         }
 
-        if (d_mountpoint(de))
-                GOTO(out_sa, rc = 1);
-
         exp = ll_i2mdexp(de->d_inode);
 
         OBD_FAIL_TIMEOUT(OBD_FAIL_MDC_REVALIDATE_PAUSE, 5);