Whamcloud - gitweb
to get Lustre built with 2.6.3+mm4, LTIME_S(dentry->d_inode->i_size) is not correct
authorhitao <hitao>
Fri, 26 Mar 2004 08:33:13 +0000 (08:33 +0000)
committerhitao <hitao>
Fri, 26 Mar 2004 08:33:13 +0000 (08:33 +0000)
lustre/obdfilter/filter_lvb.c

index 51a4579..9206a7c 100644 (file)
@@ -145,7 +145,7 @@ static int filter_lvbo_update(struct ldlm_resource *res, struct lustre_msg *m,
         if (IS_ERR(dentry))
                 GOTO(out, rc = PTR_ERR(dentry));
 
-        if (LTIME_S(dentry->d_inode->i_size) > lvb->lvb_size || !increase) {
+        if (dentry->d_inode->i_size > lvb->lvb_size || !increase) {
                 CDEBUG(D_DLMTRACE, "res: "LPU64" updating lvb size from disk: "
                        LPU64" -> %llu\n", res->lr_name.name[0],
                        lvb->lvb_size, dentry->d_inode->i_size);