Whamcloud - gitweb
simple fix for inconsistent mtime on different client, commit to test if
authorniu <niu>
Fri, 16 Sep 2005 18:41:24 +0000 (18:41 +0000)
committerniu <niu>
Fri, 16 Sep 2005 18:41:24 +0000 (18:41 +0000)
it's helpful.
- b 7230

lustre/llite/file.c

index 94ba1db..f9a01b8 100644 (file)
@@ -1931,6 +1931,9 @@ int ll_inode_revalidate_it(struct dentry *dentry)
         if (!req && (oit.it_op & IT_GETATTR))
                 ll_audit_log(inode, AUDIT_STAT, 0);
         */
+        
+        /* XXX temp fix for inconsistent mtime on different client */
+#if 0
         if (!LLI_HAVE_FLSIZE(inode)) {
                 /* if object not yet allocated, don't validate size */
                 lsm = lli->lli_smd;
@@ -1940,6 +1943,10 @@ int ll_inode_revalidate_it(struct dentry *dentry)
                         rc = ll_glimpse_size(inode);
                 }
         }
+#endif
+        if (lsm != NULL)
+                rc = ll_glimpse_size(inode);
+        
         EXIT;
 out:
         ll_intent_release(&oit);