Whamcloud - gitweb
to make Lustre build with 2.6.3+mm4 and suse 2.6
authorhitao <hitao>
Fri, 19 Mar 2004 10:58:58 +0000 (10:58 +0000)
committerhitao <hitao>
Fri, 19 Mar 2004 10:58:58 +0000 (10:58 +0000)
lustre/obdfilter/filter_lvb.c

index f664e70..854b5f7 100644 (file)
@@ -178,7 +178,7 @@ static int filter_lvbo_update(struct ldlm_resource *res, struct lustre_msg *m,
                        lvb->lvb_size, dentry->d_inode->i_size);
                 lvb->lvb_size = dentry->d_inode->i_size;
         }
-        if (dentry->d_inode->i_mtime > lvb->lvb_mtime || !increase) {
+        if (LTIME_S(dentry->d_inode->i_mtime) > lvb->lvb_mtime || !increase) {
                 CDEBUG(D_DLMTRACE, "res: "LPU64" updating lvb mtime from disk: "
                        LPU64" -> %lu\n", res->lr_name.name[0],
                        lvb->lvb_mtime, LTIME_S(dentry->d_inode->i_mtime));